It occured to me that it's a little inefficient that when you want multiple triggers for something in a custom script, you have to provide a separate If Statement for each of them. So I thought of the idea of a new class of "
Logic Commands"
The first would be "
Wait for logic"
which starts of one of these complex conditionals. There would also be "
End Logic"
to indicate the end. They can even be nested. Any "
wait for"
or "
wait while"
commands placed between these will be considered parts of the same condition.
There would also be commands that serve as logic functions. "
AND"
, "
OR"
, and "
XOR"
Now, to clarify with an example. Suppose you want to check if the player is in any of three different sections of the room, and there are monsters in one, but not both other sections. It might look something like this.
Wait For Logic
Wait For Logic
Wait For Entity Player at (coordinates)
Or
Wait For Entity Player at (coordinates)
Or
Wait For Entity Player at (coordinates)
Logic End
And
Wait for Logic
Wait For Entity Monster at (coordinates)
XOR
Wait For Entity Monster at (coordinates)
Logic End
Logic End
____________________________
The internet is no place to act like a wild animal.
[Last edited by averagemoe at 12-30-2021 02:39 AM]