Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Hello. As you can see below, I simply just want to display the items of a python dictionary as a string. I could iterate throughout the entire dictionary and display them as separate strings but I was wondering if it's possible to just use the str to convert the dictionary into a string in one go.
default random_dictionary = {'Test' : 1}
init python:
random_dictionary = str('random_dictionary') # for some reason it wants me to put in in quotes? Else I would receive a NameError: random_dictionary not defined
start:
'[random_dictionary]'
return