2 years ago

Heh, here is a JSON Script Idea for a Plugin (also, i forgot to Screenshot, but i have the JavaScript and the file still)


// ATB Plugin for RPG Maker MV
// Version 1.0
// Author: Your Name

/*:
* @plugindesc This plugin adds the ability to use an ATB system in your game.
* @author Your Name
*
* @param ATB Gauge Max
* @desc The maximum amount of ATB gauge.
* @default 100
*
* @param Default ATB Speed
* @desc The default ATB speed for all battlers.
* @default 10
*
* @param Battle System
* @desc The battle system to use (Default, Active, Semi-Active).
* @default Default
*
* @help
* This is a plugin that adds an ATB system to your game.
* To use it, just enable it in the plugin manager and set the parameters
* to your desired values.
*
* The ATB System works differently depending on the battle system chosen.
*
* Default Battle System:
* The ATB gauge will fill up for all battlers at the same rate. Once
* a battler's ATB gauge is full, they can choose an action.
*
* Active Battle System:
* The ATB gauge will fill up for all battlers at their own speed.
*
* Semi-Active Battle System:
* The ATB gauge will fill up for all battlers at their own speed.
* However, certain skills or items may have a longer cooldown than
* usual, which will affect the ATB gauge's rate of filling.
*
* If you have any questions or issues, feel free to contact me!
*/

(function() {

//-----------------------------------------------------------------------------
// Parameters
//
// These parameters can be adjusted to change how the ATB system works.

var parameters = PluginManager.parameters('ATB');
var ATB_Gauge_Max = Number(parameters['ATB Gauge Max'] || 100);
var Default_ATB_Speed = Number(parameters['Default ATB Speed'] || 10);
var Battle_System = String(parameters['Battle System'] || 'Default');

//-----------------------------------------------------------------------------
// DataManager
//
// DataManager handles the storage of data.

DataManager.createATBData = function() {
this._atbData = [];
};

DataManager.saveATBData = function() {
$dataATB = {};
for (var i = 0; i < $gameParty.members().length; i++) {
var actor = $gameParty.members()[i];
$dataATB[actor._actorId] = [actor._atbGauge, actor._atbSpeed];
}
};

DataManager.loadATBData = function() {
if ($dataATB === undefined) return;
for (var i = 0; i < $gameParty.members().length; i++) {
var actor = $gameParty.members()[i];
if ($dataATB[actor._actorId]) {
actor._atbGauge = $dataATB[actor._actorId][0];
actor._atbSpeed = $dataATB[actor._actorId][1];
} else {
actor._atbGauge = 0;
actor._atbSpeed = Default_ATB_Speed;
}
}
};

//-----------------------------------------------------------------------------
// Game_Actor
//
// Game_Actor handles all the actor-specific functions.

Game_Actor.prototype.initATBData = function() {
this._atbGauge = 0;
this._atbSpeed = Default_ATB_Speed;
};

//-----------------------------------------------------------------------------
// Game_Battler
//
// Game_Battler handles all the battler-related functions.

Game_Battler.prototype.initATBData = function() {
this._atbGauge = 0;
this._atbSpeed = Default_ATB_Speed;
};

//-----------------------------------------------------------------------------
// Game_Interpreter
//
// Game_Interpreter handles all the interpreter-related functions.

Game_Interpreter.prototype.setATBGauge = function(target, value) {
var actor = $gameActors.actor(target);
if (actor) {
actor._atbGauge = value;
}
};

Game_Interpreter.prototype.setATBSpeed = function(target, value) {
var actor = $gameActors.actor(target);
if (actor) {
actor._atbSpeed = value



28 comments

Loading...

Next up

Something is in progress...

Link to the Game - gamejolt.com/games/blackmagicedition/978505

That drawing has to be a true 1K view Celebration.

It also references a certain show or a certain cartoon you might recognize.

Link to Loka Zonzini and the San Marino Art League: Black Magic Edition - gamejolt.com/games/blackmagicedition/978505

Last week at LVL UP EXPO, Game Jolt celebrated great games made by Jolters including The Bunny Graveyard by @ElPichon !

Learn about the game: https://gamejolt.com/games/thebunnygraveyard/651214

Thanks to Razer for providing the laptops and peripherals!

Yes, it's a Cathodite Eel named "Cathodeel Fritz".

The Last Name "Fritz" is chosen because Fritz means "a state of disorder or disrepair".

gamejolt.com/games/blackmagicedition/978505

Last week at LVL UP EXPO, we celebrated great games made by Jolters including Long Gone Days by @burasto and @serenityforge !

Buy it on Game Jolt: https://gamejolt.com/games/lgd/151330

Thanks to Razer for providing the laptops and peripherals!

Idealy, Cathodeel is an eel.

So, cathodeel kinda floats like an eel.

Link to the Game - gamejolt.com/games/blackmagicedition/978505

Toroko is watching you, she wants stickers

Last week at LVL UP EXPO, Game Jolt celebrated great games made by Jolters including The Wild at Heart by @moonlightkids !

Check out the game: https://gamejolt.com/games/the-wild-at-heart/500465

Thanks to Razer for providing the laptops and peripherals!

Let there be "the best fictional species to ever exists".