I have a quick question about using ‘or’/‘and’ command for *if statements. I’ve provided the choicescript guide pages which addresses these commands below:
And/or/not (with mandatory parentheses)
And: (leadership > 30) and (strength > 40)
Or: (leadership > 60) or (strength > 70)
Not: not(strength > 70)
Complex parentheses: ((leadership > 60) and (agility > 20)) or (strength > 80)
The bolded ones are the ones I’m interested in currently. I was wondering if it’s possible to put more than one ‘and’ or put more than one ‘or’ operator in the same line of code for an *if statement to be available.
For example, can I do something like this?
Example 1 *if (weapon = 1) or (weapon = 3) or (weapon = 5) #Use this weapon *elseif (weapon = 4) #Throw this weapon *else #Flail Example 2 *if (p1met = false) and (p2met = false) and (p3met = false) Description of three NPCs not previously met *goto nextscene *else *goto nextscene
The examples basically show there are more than two possible conditions that will result in the same option. Or do I have to do it two at a time, even if the option is the same?
Please let me know if my question isn’t clear or if I need to explain further. Thank you!
Edit: I’m still looking through the forums for any previous posts about this topic. I haven’t found any yet, but if you know of one, please point me in the right direction, thanks!