Hi all!
So I’m trying to code the first part of a fight sequence. I want certain choices to be locked depending on previous choices the reader has made (ex: the MC cannot physically fight the enemy if their health is too low). I haven’t coded a scene like this before so I attempted to code it how I thought I read it should be be but I’m getting the “unexpected expression” error.
Tried looking at other threads with the same error but I couldn’t quite find what I was looking for. Here’s my script:
NARRATOR All options are locked. Click on the option you want to see if you have the right points to unlock it.
choice (fight1)
[line where error is] “With your words.” (if PRACTICAL=1) {
NARRATOR
Congrats, you have enough practicality points to outsmart the mercenary.
} “With your fists.” (if travel2 is “Stray OFF the path.”) {
NARRATOR
Congrats, because your health is high enough, you have enough energy to fight!
YOU (talk_armscrossed_angry_loop)
I’m guessing you’re out here to find the dragon?
&YOU is idle_armscrossed_angry_loop
MERCENARY4 (talk_doubtful)
And what if I am?
YOU (talk_fight_angry_loop)
It means I’m gonna have to stop you.
MERCENARY4 (talk_deny_neutral)
Are you out of your mind?!
} “By running away.” (if CAUTION=1) {
NARRATOR
Congrats, you have taken a cautious approach so you don’t have to confront the mercenary.
}
Thanks to anyone that can help!