Set All Self Switches
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
本贴来自国际rpgmaker官方论坛作者:continuumg处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/set-all-self-switches.71918/
页:
[1]