Eli_DevSwitches

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
946
Reaction score
384
First Language
Portuguese - Br
Primarily Uses
RMMV
Author: Eliaquim
Introduction
This plugin automatically turns on a switch in response to something that is happening.
For example, if the game is running on a mobile device, a switch will automatically turn on and stay on in the whole game.
If the timer is active, a switch will turn on when counting, and it will be turned off when it reaches zero.

Features
Currently, the plugin will automatically turn on the switches when the following conditions are true(otherwise, it will turn off automatically too):
• You are in Test mode (battle test, event test or normal editor test).
• If the game is running on a mobile device.
• If the game is running from a Desktop.
• If the player is in battle.
• If the player is in any vehicle.
• If the player is in an airship.
• If the player is in a boat.
• If the player is on a ship.
• If the player is in 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 timer is active.²
¹ It is necessary to configure the tileset.
² When it reaches zero, the switch turns off.

All switches can be used normally just like any other switch.


How to Use
In the plugin parameters, select which switch you want to link to each feature. And that's it.

1. Give the credits to Eliaquim or Rakuen Zero in the credits section of your game.
2. It can be used in free and commercial games.
3. Do not sell or say that you made this plugin or part of him.
4. A free copy of your game would be nice(but it's not mandatory).
5. Do not redistribute this plugin. Instead, give this link to the download

Download
Eli_DevSwitches.js

Credit and Thanks
@caethyril @Poryg that help me so much when I start to make this plugin a long time ago!
And SRDude Tutorials on Youtube.

Terms of Use

1. Give the credits to Eliaquim or Rakuen Zero in the credits section of your game.
2. It can be used in free and commercial games.
3. Do not sell or say that you made this plugin or part of him.
4. A free copy of your game would be nice(but it's not mandatory).
5. Do not redistribute this plugin. Instead, give this link to the download:
https://rakuenzero.itch.io/eli_devswitches


Update Log
Version 1.2 - 11/27/2019
- Fixed a bug that prevents the game from loading a save file.
Version 1.1 - 11/01/2019
- Fixed a bug that prevents the test switch to be turned on in the battle test.
- Added a battle switch.
- Improvement in the code.
Version 1.0 - 10/31/2019
- Plugin release!
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,041
Reaction score
10,273
First Language
Czech
Primarily Uses
RMMV
An interesting little utility! Nevertheless, I've noticed a bug just from reading the code.

Code:
if (Utils.isOptionValid('test') || Utils.isOptionValid('btest') || Utils.isOptionValid('etest')) {
        $gameSwitches.setValue(Eli.Param.DevSwitches.Playtest, true);
    }
The plugin has a playtest or battle test or event test switch condition, however, since you implemented it only on Scene_Map, it means it won't turn ON in battle test.

Also, I have some feedback about the code, but I'll send it in PM to not bloat the thread.
 

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
946
Reaction score
384
First Language
Portuguese - Br
Primarily Uses
RMMV
An interesting little utility! Nevertheless, I've noticed a bug just from reading the code.

Code:
if (Utils.isOptionValid('test') || Utils.isOptionValid('btest') || Utils.isOptionValid('etest')) {
        $gameSwitches.setValue(Eli.Param.DevSwitches.Playtest, true);
    }
The plugin has a playtest or battle test or event test switch condition, however, since you implemented it only on Scene_Map, it means it won't turn ON in battle test.

Also, I have some feedback about the code, but I'll send it in PM to not bloat the thread.
Thank you! I will wait for the PM!
 

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
946
Reaction score
384
First Language
Portuguese - Br
Primarily Uses
RMMV
Updated to version 1.1!
- Fixed a bug that prevents the test switch to be turned on in the battle test.
- Added a battle switch.
- Improvement in the code.
 

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
946
Reaction score
384
First Language
Portuguese - Br
Primarily Uses
RMMV
Updated to version 1.2!
- Fixed a bug that prevents the game from loading a save file.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

i watched the sonic movie it was pretty good i hope they make a sequel
tomorrow I'ma go on a cruise for the first time ever... lets hope I'll survive the experience!
Omg! 8 years in this forum :o
Ksi
Streaming the last of the RMN Valentiny event games so feel free to drop on by and watch me cry (whether that's from laughter, rage or sheer pain, who knows?)
Today I went to sleep without setting an alarm, so I could sleep more than 2 hours. I woke up after 2 hours.

Forum statistics

Threads
94,309
Messages
919,827
Members
124,060
Latest member
jloppnow
Top