MV How to write conditions in Super Tools Engine?

Hey,
I'm trying to make conditional elements in SumRndmDde's plugin 'Super Tools' but I keep getting the syntax wrong.
I only want to show elements when a check on certain variables or switches returns true.

What's the right syntax for this plugin to ask a condition proper?
$gameSwitches.value(x); returns true, default is false,
$gameSwitches.value(x) == true; can work too

$gameVariables.value == x (return the value if equal to)
change == to >= for equal or higher, <= lower or equal and
if you need 2 values, place && for both or multiple or use || (or)
the other value to be correct.

as those are the basics, you can make it more complex, depending on
the hud and where you make it.
...what condition are you trying to check? We can't give you the answer if we don't know what you're asking 😛

Generically, you check the value of a variable with $gameVariables.value(X)==Y where X is the variable ID and Y is the value. You can use any mathematical operator there, with == being equal to, >, <, >=, <= are all valid.

And similarly you check a switch with $gameSwitches.value(X) where X is the switch ID to be on, or !$gameSwitches.value(X) to check if the switch is off.
...what condition are you trying to check? We can't give you the answer if we don't know what you're asking 😛

Generically, you check the value of a variable with $gameVariables.value(X)==Y where X is the variable ID and Y is the value. You can use any mathematical operator there, with == being equal to, >, <, >=, <= are all valid.

And similarly you check a switch with $gameSwitches.value(X) where X is the switch ID to be on, or !$gameSwitches.value(X) to check if the switch is off.
Is "x" switch true or is said switch false. Simple as that.
For variables just "Is this variable = x?"

I tried just inputting $gameSwitches.value(X),
$gameSwitches.value(X) = true
$gameSwitches.value(X) == true
$gameSwitches.value(X) == true;
$gameSwitches.value(X) == 1
Where X was replaced with 55 (number of the switch)

All of these give me error messages in SumRndmDde's plugin.

2.PNG




1.PNG


The plugin seems to work fine otherwise when not asking for conditionals but everytime I try to set a condition it breaks on me, and I cannot seem to set it right.
Those errors don't appear to be related to the Super Tools, they're all coming from LTN_Elements, whatever that is.

Maximum call stack exceeded means that there's code someplace that accidentally tries to refer to itself.
another thing to keep in mind.

condition is showing red (NOT MET), while if it is GREEN when met.
so you need to close the hudmaker, make the switch ON (true)
and the condition will be green (valid). as red can be valid (but not met yet).

so while LTN_Elements is the cause, turn that off for the time being, or
re-arrange the plugin database.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-write-conditions-in-super-tools-engine.148042/