Script by Zeriab. Idea by Punk. Topic written by Punk. Zeriab's Autoswitcher by Zeriab
Introduction
Punk Wrote:After years of creating event systems, one thing I had grown tired of was having to make a map event activate some switch just to start a couple of my common events. No more having to activate the switch via some random map! *celebrates*
This script allows the game creator to activate the switches they want to activate AND alter the values of the variables they want altered.
This is Zeriab's much better version of the Autoswitcher. It totally pwns my version and it's very easy to use. I was posting my Autoswitcher in Seph's forums and then Seph and Zeriab thought of much better solutions to do it (they rock). I liked Zeriab's solution because it was a short piece of code yet it did what it was supposed to do which was activate certain switches and adjust certain variables before the game began.
Features
Very easy to use.
Activates switches you want activated.
Alters variables you want altered.
Activates and adjusts before your game starts
You no longer have to rely on an event in a particular map to activate a few switches and change the variables.
Screenshots
No screenshots or demos needed. Instructions are easy to follow, the script is easy to use.
Installation RPG Maker XP Users: Create a new script above main and then copy/paste the code below. RPG Maker VX Users: Create a new script inside "Materials" and then copy/paste the code below.
Green - Switch ID. Red - true (switch is ON) or false (switch is OFF)
I'm definitely no scripting genius but this part of the script does the game switch related stuff. Now I'm sure you'd like to know, what are those?
As you can see, the code highlighted in green is the switch ID. The code highlighted in red decides whether the switch is either on or off by default with a true or false.
You can turn on an additional switch in your game by adding this code somewhere after "@data =[]" and before the first "end".
I'm definitely no scripting genius but this part of the script does game variable related stuff. Now I'm sure you'd like to know, what are those?
As you can see, the code highlighted in orange is the variable ID. The code highlighted in purple will be the default value of the variable ID. It could be a negative or positive integer.
FAQs
Awaiting question... (Zeriab can also answer a few too. He's much smarter than me when it comes to scripting. )
Compatibility
I think it's SDK compatible. I haven't checked yet.
Author's Notes
Zeriab Wrote:If you get any issues at all when inserting and using this script then make an evented solution instead.
Should you get any issues or have any problems using this script? Event it instead.
There is no reason to ask, because that would be my answer.
Credits
Credit Zeriab for the script.
Credit Punk for the idea.