PluginName: SDJB_SwitchGroups
Author: ShadowDragon
Hate to use control switches 3-6 to only allow 1 to be ON and rest OFF?
what about a conditional checks to see if the order is correctly pressed?
NO more need with this plugin, see how it works for MV and MZ.
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
=== WARNING ===
YOU ARE NOT ALLOWED TO:
* MODIFY without permission
* EXTEND without permission
* TAKE CODE without permission
* CLAIM AS YOU MADE IT
* REDISTRIBUTE but link back to the forum or itch.io
* SELL this product as standalone.
* DO NOT REMOVE THE HEADER.
Download on itch.io (as it require my SDJB_Base (mini or main))
Author: ShadowDragon
Hate to use control switches 3-6 to only allow 1 to be ON and rest OFF?
what about a conditional checks to see if the order is correctly pressed?
NO more need with this plugin, see how it works for MV and MZ.
Code:
Introduction
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
Always trouble with complex time system evented or ordered switches?
Evented time switches or other system to check if Switch X is ON
and turn OFF 4-6 other switches?
Evented mechanic on ordered switches X to Y to see if they are on or
if wrong, turn the rest off over 3-N pages?
No more trouble with this plugin that simplifies the mechanic for you.
introducing SwitchGroups:
This plugin allows you to organize switches into groups for easier control,
place the tag in the name of a switch.
Exclusive Group (no order):
Tag format: <tag>
Turning one ON automatically turns all other switches in the same tag OFF.
Sequence Group (strict order):
Tag format: <tag>[order]
All switches in the group MUST have an order.
Turning ON a switch requires all lower-order switches to be ON.
If the sequence is broken, all switches in that tag group are reset to OFF.
Missing order numbers trigger a popup alert and a console error.
Examples tags, only 1 can be on at the time (can start false)
<time>
<time>
<time>
Examples ordered tags
<green grid>[1]
<green grid>[2]
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
=== WARNING ===
YOU ARE NOT ALLOWED TO:
* MODIFY without permission
* EXTEND without permission
* TAKE CODE without permission
* CLAIM AS YOU MADE IT
* REDISTRIBUTE but link back to the forum or itch.io
* SELL this product as standalone.
* DO NOT REMOVE THE HEADER.
Download on itch.io (as it require my SDJB_Base (mini or main))