How to print to Ren'py console
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
How to print to Ren'py console
Hello, I have been very confused on how to use the Ren'py console and do not understand the documentation on the renpy page. I have 1 script.rpy file and three other .rpy files all of which help to create a dictionary in one of the files. I want to print the dictionary out to the console to see what is inside. However, I do not understand how. I tried shift + o to get to the console but afterward, when I tried to type print(the_dict) or simply the_dict in the console, I either get the invalid syntax of an undefined variable. Any help would be greatly appreciated. Thanks in advance.
- mavyxdawn
- Regular
- Posts: 72
- Joined: Sun Dec 20, 2015 6:18 pm
- Github: mavyxdawn
- itch: zeillearnings
- Discord: _zeil
- Contact:
Re: How to print to Ren'py console
This worked for me:
I have an instance variable called inventory
The console input:
This also worked
It has an array items so I code this to check my array:
I have an instance variable called inventory
The console input:
Code: Select all
inventory
Code: Select all
print inventory
It has an array items so I code this to check my array:
Code: Select all
inventory.items
Who is online
Users browsing this forum: No registered users