Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
5ew4Xvv.png

Author: Hakuen Studio

Introduction

Provides advanced switch operations.

There are many conditions that, by default, the event tabs do not have commands to check.
As an example, if the game is being played on an android device, iPhone, computer or check the current weather (rain, storm, or snow).
Instead of use the script calls:

$gameScreen.weatherType() === 'rain'

This plugin facilitates this and other processes by automatically activating a switch of your choice based on a predefined condition in plugin parameters.

Features

● Advanced plugin command to manage switches.
3.jpg

● Global switches that have his values working across save files.
ZNbZU8l.jpg


● Optionally, automatically turns the specified switches on and off
according to the conditions below:

• Is in Test mode (Whether in battle, event, or normal).
• If the game is running on a mobile device.
• If the game is running from a Desktop.
• If the game is running on an android.
• If the game is running on an iPhone.
• If the player is in any vehicle.
• If the player is on an airship.
• If the player is in a boat.
• If the player is on a ship.
• If there is any change in the weather.
• If it is raining.
• If it is snowing.
• If it is raining heavily (storm).
• If the player is on a tile that inflicts damage.¹
• If the player is running.
• If the player is in a bush.¹
• If the player is on a ladder.¹
• If the player is in motion.
• If the message window is open.
• If the choice window is open.
• If the number entry window is open.
• If the item selection window is open (from the map).
• If the timer is active.²
¹ It is necessary to configure the tileset.
² When it reaches zero, the switch turns off.

How to use
♦ Global Switches ♦

• You can set regular switches to have their values persistent across save files.
To do that, you just need to insert "GD:", without quotes, not case-sensitive, on the switch name.
GD means GLOBAL DATA.

♦ Plugin parameters ♦

● Update Method → There are two ways for the plugin to work:

• Update as needed → The switches are turned on and off automatically only when something related to them happens. For example, when entering a vehicle the plugin will identify which vehicle it is and activate the switch for that vehicle. And when you leave it, the switch will turn off.

• Always update → At each time interval (frames) specified in the "Update interval" parameter, the plugin will check all switches and turn on or off each one depending on the condition of each one.
For example, regardless of whether the player enters or exits the vehicle, the plugin will be updating the corresponding switches at each time interval.

• None → It will do nothing. Will not auto-update the switches in any way.

If you happen to experience any incompatibility with other plugins, try switching between versions.

♦ Plugin Commands ♦

Operations → Let you manage switches in a more advanced way.
You can toggle values, change more than one switch, or even a range of switches ids.
Can set a delay to change the value of switches.

Screenshots
e8fbOGo.jpg

ZNbZU8l.jpg

V8VLnRZ.jpg

Terms of Use
https://www.hakuenstudio.com/rpg-maker/terms-of-use

DOWNLOAD
Update Log
Version 3.2.0 - 11/14/2021
- Added Global switches, that are persistent across save files.
- Added a new switch under the System parameters: "Has Save". If any saved file exists, this switch will be turned on according to the Updated Method Parameter.
Version 3.1.2 - 10/28/2021
- Fixed a bug that even with the delay set to 0, the plugin command was delaying the change of the switch a little bit.
Version 3.1.1 - 10/22/2021
- Fixed a bug that the script calls on the plugin command was not giving the context of the "this" keyword to the current event running the plugin command.
Version 3.1.0 - 10/18/2021
- Add a new argument in the plugin command that lets you change the value of the switch using a script call.
Version 3.0.0 - 08/09/2020
- Reorganized the plugin parameters.
- Add a plugin command that lets you manage switches in a more advanced way, like setting a delay to change its value.
- Fixed a bug with the switch that was checking if the player was moving, which was not updating properly.
- Changed help file.
- Code clean up.
- Adapted to work with Eli Book 4.0.0.
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
Version 1.0.1 - 11/11/2020
- Code clean up.
Version 1.0.0 - 10/20/2020
- Plugin release!
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.0.0 - 08/09/2020
- Reorganized the plugin parameters.
- Add a plugin command that lets you manage switches in a more advanced way, like setting a delay to change its value.
- Fixed a bug with the switch that was checking if the player was moving, which was not updating properly.
- Changed help file.
- Code clean up.
- Adapted to work with Eli Book 4.0.0.

e8fbOGo.jpg

V8VLnRZ.jpg
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.1.0 - 10/18/2021
- Add a new argument in the plugin command that lets you change the value of the switch using a script call.

3.jpg
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.1.1 - 10/22/2021
- Fixed a bug that the script calls on the plugin command was not giving the context of the "this" keyword to the current event running the plugin command.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.1.2 - 10/28/2021
- Fixed a bug that even with the delay set to 0, the plugin command was delaying the change of the switch a little bit.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,352
Reaction score
1,847
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.2.0 - 11/14/2021
- Added Global switches, that are persistent across save files.
- Added a new switch under the System parameters: "Has Save". If any saved file exists, this switch will be turned on according to the Updated Method Parameter.
 

Latest Threads

Latest Profile Posts

At work.
Co: "This bug drove me insane. I tried a lot of things to debug, it just stuck".
Me: "How did you debug it?"
Co: *shows a complicated debugging method using breakpoints and everything*
Me: "What about ... " *casually prints a stack trace in the try/catch exception
Co: "Wait, you can do that??"
Totally original and unique OC
Harold.png
So after completing the Mass Effect Trilogy the first time as a Vanguard, I decided to replay the trilogy as a Soldier. Thus far, I've just finished the Horizon mission in ME2, and I'm already exhausted from ME2's f**k-awful enemy design.
Yeah, now Yes !!!! "boom boom "
"Fire the monsters, guards!!!"

index.php
I can't stop buying resource packs I'll never use, or engines for that matter, or free resources as my two terabyte external will attest. I am a digital hoarder I guess. Some people get drunk off the silly juice when they are bored, I just buy shiny digital nonsense I don't need.

Forum statistics

Threads
118,652
Messages
1,117,584
Members
155,760
Latest member
Aevea
Top