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.
and it goes on 5 total times, since that's how many characters I'm trying to make.
I read this, specifically Milkymalk's long answer; I think that's what is my problem is, but I am very newb so I'm don't to know how to solve it >_<'''
So I would very much appreciate help!
Last edited by ninjaK4T_06 on Fri Nov 30, 2018 7:30 am, edited 1 time in total.
Remix wrote: ↑Fri Nov 30, 2018 7:06 am
You might also want a !q in your interpolation (to escape any braces) "[random_characters!q]"
Hey Remix! I tried to google it, but !q is not particularly easy to google. Could you explain !q a bit more? When exactly would one want to use this and how does it work?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Remix wrote: ↑Fri Nov 30, 2018 7:06 am
You might also want a !q in your interpolation (to escape any braces) "[random_characters!q]"
Hey Remix! I tried to google it, but !q is not particularly easy to google. Could you explain !q a bit more? When exactly would one want to use this and how does it work?
Result:
Exception: Unknown text tag u"u'a': 1, u'c': 3, u'b': 2"
This is because Ren'Py does the interpolation before it does formatting and characters like { and % (and maybe others) are thought to be text tags, format identifiers or the like.
Rather than doing $ my_dict_output = str(my_dict).replace('{', {{').replace('%', '%%') we just add the !q after our variable name and Ren'Py does the clever stuff for us.