- Joined
- Oct 23, 2020
- Messages
- 45
- Reaction score
- 8
- First Language
- English
- Primarily Uses
- RMMZ
if (($gameVariables.value(1) == 12 || $gameVariables.value(1) == 13) && !$gameSwitches.value(23)) {
do stuff
}
Oh yeah!You have an OR and an AND in the same condition, so it will be evaluated from left to right - if variable 1 is 12, it won't check the other things.
If you want variable 1 to be 12 or 13 AND switch 23 is off, put parentheses around the two variable checks:
Code:if (($gameVariables.value(1) == 12 || $gameVariables.value(1) == 13) && !$gameSwitches.value(23)) { do stuff }
Though you could have done all of that using event commands anyway