Hi guys I’ve been looking at this code and can’t work out what’s wrong with it. I’m guessing maybe I can’t use *if statements within choices?
The error with quicktest is
Error: part4 line 167: It is illegal to fall out of a *choice statement;
you must *goto or *finish before the end of the indented block.
The spacing should be right I think, so wondering if it’s the *if’s that is messing it up or something else? (The error relates to the line with “throw the knife”) Thanks
*choice
#Get in close and slash with the knife.
*if ( agility > 39 )
Story here
*goto attackfail
*if ( agility < 40 )
*set health -10
*set part4injured 1
Story here
*goto attackfail
#Throw the knife from where you stand.
*if ( strength > 39 )
Story here
*goto attackfail