Set All Self Switches

continuumg

Veteran
Veteran
Joined
Oct 27, 2016
Messages
68
Reaction score
44
First Language
English
Primarily Uses
A simple snippet that allows the user to use a simple plugin command or script call to set all self switches of a given key.


Alternately you could use a script call.


The plugin command is not case sensitive.


For example


SetAllSelfSwitches a true     <-- This will set the self switch 'A' of every possible event to true (Plugin command)


$gameSelfSwitches.deactivateAllKeys('B')     <--- This will set all self switch 'B's to false (Script call)


$gameSelfSwitches.activateAllKeys('B')     <--- This will set all self switch 'B's to true (Script call)


I don't recommend setting all switches on, as it can cause lag or save file bloating. However, turning them all off should be reasonably efficient, so do so instead whenever possible.

View attachment ContinuumSASS.js
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top