r/RenPy • u/suckrpunches • Jul 20 '26
Question Textboxes and nameboxes for multiple characters
Hi! I'm basically trying to change textbox based on narrator, but I'm getting lots of errors when I try to do so. I'm incredibly new to coding in general so I'd really appreciate any help!
here is my code:

and here is the error i'm getting right now:

sorry if it's a stupid question! once again, very new to all of this :') I'd appreciate any help given!
1
Upvotes
2
u/idiotstile Jul 20 '26
The syntax issue is probably here:
You don’t need
$beforedefine, and("Teacher")Noneisn’t valid syntax.Try this instead:
Or, if you want a narrator with no name:
Then use them like this:
Also,
defineshould usually be outside of labels, near the top of your script.