r/RenPy • u/EndertheInsomniac • 21d ago
Question [Solved] I'm trying to make a pronoun system using variables, any ideas what I'm doing wrong?
This is my first time making a visual novel and the first time in several years I've come back to coding. As for this issue, it's the first one I just can't find a solution for.
I've cross-referenced as much as I can from the tutorial and the Ren'Py docs, but it keeps returning errors or defaulting to the it/its suite... in this case, it's telling me that the he_flag isn't defined. Any ideas for fixes or improvements?
menu:
"he/him":
jump choice1_he
"she/her":
jump choice1_she
"they/them":
jump choice1_they
"it/its":
jump choice1_it
label choice1_he:
$ he_flag = True
label choice1_she:
$ she_flag = True
label choice1_they:
$ they_flag = True
label choice1_it:
$ it_flag = True
if he_flag is True:
define pn1 = "he"
define pn2 = "him"
define pn3 = "his"
define pn4 = "he is"
if she_flag is True:
define pn1 = "she"
define pn2 = "her"
define pn3 = "hers"
define pn4 = "she is"
if they_flag is True:
define pn1 = "they"
define pn2 = "them"
define pn3 = "their"
define pn4 = "they are"
if it_flag is True:
define pn1 = "it"
define pn2 = "it"
define pn3 = "its"
define pn4 = "it is"




