Page 1 of 1

How to print to Ren'py console

Posted: Wed Jun 16, 2021 6:24 pm
by h333
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.

Re: How to print to Ren'py console

Posted: Wed Jun 16, 2021 7:45 pm
by mavyxdawn
This worked for me:
I have an instance variable called inventory

The console input:

Code: Select all

inventory
This also worked

Code: Select all

print inventory

It has an array items so I code this to check my array:

Code: Select all

inventory.items