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.
Hi there, I'm coding the point system at the moment to determine which character the player will end up with. Of course, there are also scenes for the possibility that you end up with a tie. The system works fine at the moment except for one tiny detail.
This will just print out [boyChoice] instead of the name set to one of the tiedBoy variables.
I was wondering if it's possible at all to set a variable as another variable. But this could be a syntax error on my part after all! Thanks in advance
Last edited by Smaymay on Fri Jan 11, 2019 7:47 am, edited 1 time in total.
No problem. Interpolation (in whatever form you may come across, .format() or % or []) is only necessarily when you want to put the variable in a STRING. In all other contexts, it's just the variable name.