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.
People have been expressing their dislike for the fact that I use text tags like "{w=0.1}" after punctuation marks in the game I'm making so I've been trying to figure out a way to turn that on/off. (I personally like it though because it gives the illusion that the character is speaking... but it's a personal preference.)
So I was thinking that I could use a variable in place of punctuation marks and have the player set their preference for pausing on/off by themselves, like so:
$ com = ','
if pausing == True:
$ com == ',{w=1.0}' #not using 1.0 of course i just wanted to see the result clearly
y "Hi[com] how are you today?"
a "Fine[com] thank you!"
(probably not the most efficient way to go about it but ;;)
But when I tested it it seems like the text tag is ignored completely? On/off yields the same result, a comma but no pause. Any way I can get around this/is there a different method to do the same thing?
Last edited by Joey on Tue May 29, 2012 1:52 pm, edited 2 times in total.
init:
$ if persistent.com!=0.0: persistent.com=1.0
label start:
y "Hi,{w=[persistent.com]} how are you today?"
a "Fine,{w=[persistent.com]} thank you!"