Eli_DevSwitches

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
1,269
Reaction score
543
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,063
Reaction score
10,364
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
1,269
Reaction score
543
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
1,269
Reaction score
543
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
1,269
Reaction score
543
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

So, uh, has anyone tried buying any resources from KokoroReflections? Because I've been looking for a 'buy' button on the site for like 10 minutes now and can't find one.
Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...
Everyone in the US right now: Please stay safe.
Symphony Celestia: Prophecy of the Falling Stars RPG Maker music pack WIP. Symphony Celestia is a new series that focuses on symphonic and orchestrated music to tell a story. Each story will include compositions that make up that story from beginning to end. Themes include: Battles, adventures, character themes, etc. Below is a video preview to the first story.

Jumping and gravitation 0.1 build - RPG Maker MV

Forum statistics

Threads
97,979
Messages
948,298
Members
129,241
Latest member
LordCola
Top