Page 1 of 1

renpy.input adding character name gives syntax error

Posted: Sat Jun 16, 2018 9:40 am
by Fire247
I am having a small problem with renpy.input. When I write a narrator line between the brackets it works just fine but when I write a dialog line it gives me a syntax error. Is it possible to input something while a character is asking a question or saying something? I know I could write the question in a separate line and then give the player an input box, but that wouldn't look very "clean".

Here's the code:

Code: Select all

$ inputzahl = renpy.input(character "Was ist [a] + [b]?").strip()
#gives me a syntax error
 
$ inputzahl = renpy.input("Was ist [a] + [b]?").strip()
#works fine but doesn't display character name while input

Re: renpy.input adding character name gives syntax error

Posted: Sat Jun 16, 2018 9:50 am
by gas
Input get a string as a prompt, not a speaker line.
That's a limit you can't bypass. You can try to cheat the system by showing that name directly (with a fake name box if needed).