Hello everyone. 👋
I'm trying to make an OR statement in a conditionnal branch with a script line.
I'm basically looking for the value of a variable, which could have several values.
The reason I'm doing this with a script and not with the regular variable conditons is that I'm looking for a string value, which can't be set other than by scripting.
So, here is how it looks :
However, doing this will result in anything triggering this condition.
I tried enclosing the keywords with (); and tried an absolute === condition, but it doesn't do the trick.
I'm not an expert and I'm pretty sure a simple This OR That can be put in one script line, so could anyone help me with the correct syntax?
Thank you very much. 😤
I'm trying to make an OR statement in a conditionnal branch with a script line.
I'm basically looking for the value of a variable, which could have several values.
The reason I'm doing this with a script and not with the regular variable conditons is that I'm looking for a string value, which can't be set other than by scripting.
So, here is how it looks :
JavaScript:
If: Script:$gameVariables.value(55) == "omg"||"omfg"
However, doing this will result in anything triggering this condition.
I tried enclosing the keywords with (); and tried an absolute === condition, but it doesn't do the trick.
I'm not an expert and I'm pretty sure a simple This OR That can be put in one script line, so could anyone help me with the correct syntax?
Thank you very much. 😤