Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
3,174
Reaction score
2,434
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
Update Log
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
3,174
Reaction score
2,434
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
3,174
Reaction score
2,434
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
3,174
Reaction score
2,434
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
3,174
Reaction score
2,434
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
3,174
Reaction score
2,434
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.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
3,174
Reaction score
2,434
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 5.0.0 is not compatible with my plugins that are below the 5.0.0 versions.

Version 5.0.0 - 02/05/2022

  • Updated terms of use.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
3,174
Reaction score
2,434
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 5.0.1 - 06/24/2022
  • Updated the help file with the missing Plugin Commands from the MV version.
  • Minor performance improvement on evaluating plugin parameters.
  • Improve performance on the script feature to change the value of a switch.
  • Now for selecting a range of switches on the plugin command, you need to use double trace “--” instead of a single one: “-”
 

Latest Threads

Latest Posts

Latest Profile Posts

Trailer is almost done for the game i can't wait to show it to everyone
I've got good news and bad news. The good news is, there aren't any bad news to report. The bad news is, there aren't any good news to report.

Or as others say, yesterday was uneventful.


I am curious that can you "understand/get the point" about what does this place do generally?
(ARPG game)
If anyone knows any C# programmers, please send them my way.
Chilling at night in a tavern.
ChillingAtTavern.png

After 'multiple breakdowns', it's finally over. 10/10 will do this again.

Forum statistics

Threads
129,856
Messages
1,205,745
Members
171,031
Latest member
johnsmithk224
Top