How would I write this line of code in JS so that it's compatible with the SRD HUD Maker? The final comment being the successful execution of the script.
MV Conditional Branches in SRD HUD Maker?
Javascript/Plugin Supportjust check for the switch or make a toggle switch:
condition: $gameSwitches.value(x); X being the ID of the switch,
the above is the same as $gameSwitches.value(x, true);
condition: $gameSwitches.value(x); X being the ID of the switch,
the above is the same as $gameSwitches.value(x, true);
For two switches, e.g. switches 5 and 6:
(The
JavaScript:
$gameSwitches.value(5) && $gameSwitches.value(6)
(The
value function only accepts one input: the switch ID.)Original thread: https://forums.rpgmakerweb.com/threads/conditional-branches-in-srd-hud-maker.131064/