Switch On While State is Inflicted

Switch On While State is Inflicted v1.1
by CT_Bolt

Features
Checks to see if a state is inflicted.
If the state is inflicted it turns on a switch.

Optional:
By default this script checks if the state is not inflicted it will turn off the switch mentioned above.
This can be set to not happen with the use of another switch.

Compatibility
This should be compatible with all scripts.

How to Use

Spoiler

Quote

01. Setup an event/common event to be triggered by a switch
02. Setup a variable to contain a state ID that will be checked
03. Setup a variable to contain a switch ID that you want turned on
04. Setup a variable to contain a switch ID that will determine if you want turned off a the CONDITION_SWITCH (#3) when a state is removed

05. Set STATE_VARIABLE_ID to the ID of a variable (#2) that contains the ID of a switch that will be turned on
06. Set CONDITION_SWITCH_VARIABLE_ID to the ID of a variable (#3) that contains the ID of a switch that will be turned on
07. Set STAY_ON_SWITCH_VARIABLE_ID to the ID of a variable (#3) that will be used determine if you want to turn off a the CONDITION_SWITCH (#3) when a state is removed

Optional:
08. Set DEFAULT_STATE_ID to a State ID that can be set to the variables when starting a new game
09. Set DEFAULT_CONDITION_SWITCH_ID to a Switch ID that can be set to the variables when starting a new game
10. Set DEFAULT_STAY_ON_SWITCH_ID to a Switch ID that can be set to the variables when starting a new game
11. Set AUTO_CONFIG to true assign the defaults when starting a new game

See script for further details.

Demo
Demo: Click Here

Script
Script: Click Here

FAQ
None yet.

Thanks
Alcortiza for the original idea.
Pikalyze
– To everyone who has ever contributed to this community!

Author’s Notes
Enjoy! Let me know how it works for you. Please give feedback, anything that could be added, etc.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s