I’m having trouble with using *if choices.
For some reason, when I make the choice *if (crossbow =true)#Shoot, I for some reason get the error “2-village line 828: Non-existent variable ‘shoot’”
My code looks like this:
*choice *if (greatsword =true)#Charge them *comment fight goes outside *set demons -6 *if (crossbow =true)#Shoot one of them *set demons -1 *if (greatsword =true)#Use a wide horizontal swing *set demons -2 *if (shortsword =true)#Kill the first one to reach you *if (clearhouse =false)#Flip up a table to use as a shield *set head +1 #Dodge out of their way #There's no end of them...
I’m using the automatic “random tester,” that’s what’s picking it up. Presumably I would get the same error for the other choices if the random test got that far.
I’ve also tried supplementing *if with *selectable_if to the same effect.
Also, if I put a space between between the check and the option, I instead get
"2-village line 1755: Expected choice body"
I don’t even know where to start with that.