Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,297
Reaction score
1,792
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,297
Reaction score
1,792
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,297
Reaction score
1,792
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,297
Reaction score
1,792
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,297
Reaction score
1,792
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,297
Reaction score
1,792
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 Posts

Latest Profile Posts

Well, someone "reviewed" my game. Didn't credit me anywhere in the video and spent 2 minutes insulting it. Going to ignore that and move on.
To cut down on map lag, I've been researching how to implement a lighting layer as a single map overlay instead of a bunch of individual lights. Hopefully I'll have a screenshot soon!
Imagine having a game broken up into a whole bunch of chapters? Like Chapter 11 should be about the party members going bankrupt.
Over 1/4th of the calendars are already out :eek: Have you already put something to a good use?

Forum statistics

Threads
117,261
Messages
1,105,921
Members
153,431
Latest member
shadowking1901
Top