Editting Yanfly's ATB Battle System

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
Hi all!

I know that Yanfly has abandoned support of his ATB Battle System, but I still want to play around with it because I'm stubborn.

Essentially, what I'm trying to do is to add a feature to the battle system where the Speed value of a skill (the native RPG Maker speed that is found in the Invocation tab, not ATB speed) will change how quickly the skill will charge. This means that I can make it so that more powerful skills take longer to charge, and have more of a chance of getting interrupted.

On line 1906 of YEP_X_BattleSysATB.js, I've found the updateATB function. The fourth if-statement in the function looks like this:
Code:
if (this.isATBCharging()) {
  var value = this.atbCharge() + this.atbSpeedTick();
  this.setATBCharge(value);
}
My first (and only, so far) attempt to modify it went like this:
Code:
if (this.isATBCharging()) {
  var abilityModifier = 5 * this.currentAction().speed();

  var value = this.atbCharge() + this.atbSpeedTick() + abilityModifier;
  this.setATBCharge(value);
}
In one of my abilities, I then set it the speed to be -5. The results were weird. It seemed to actually speed up all other skills rather than make this one slower, which isn't ideal. Does anyone have any idea why this happened, and what a good solution may be?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top