Not ("No, it\'s [name]") but ("No, it\'s %s"%(name))fauxbius wrote: ↑Mon Jun 24, 2019 12:22 pmI actually ended up doing the below using the del_last_msg, as the freeze didn't work, it wouldn't unfreeze after taking a name, or wouldn't let me inout anything. The problem is that you type the name, it gets sent and displayed as a message. You can't use the input and just display the last line in this code without using del_last_msg to clear the previous one first.sDextra wrote: ↑Mon Jun 24, 2019 10:38 am
If I understand you correctly, you can try using this function:Code: Select all
$ freeze() # your actions $ unfreeze()
Code: Select all
$ msg(None, name_input=True) if name=="Jack": $ msg ("Yeah, this is Jack") else: $ del_last_msg() $ msg ("No, it\'s [name]")
if you want to input a name outside the message bubble:
Code: Select all
$ name = renpy.input(u"What's your name?", length=25).title()
if name=="Jack":
$ msg ("Yeah, this is Jack")
else:
$ msg ("No, it\'s %s"%(name))