Reduced Defenses in Casting Time - Is It Possible?

Ultima01

Unhinged
Veteran
Joined
Mar 13, 2013
Messages
69
Reaction score
11
First Language
English
Primarily Uses
N/A
So Yanfly's ATB has the Charge Gauge which fills up when a character selects a skill, with varying speed depending on the user's AGI and the skill.  Just in case anyone is unfamiliar with the term, I refer to the particular interval of time that takes as "Casting Time".


I would like a system where characters who are in Casting Time take slightly more physical damage, have slightly reduced EVA, and have slightly reduced CEV; the relevant plugins here are YEP: Auto-Passive States, and YEP: Battle System - ATB.  I understand the latter is no longer supported by Yanfly for practical reasons, so I understand if no one can answer this; for better or worse, I'm asking here in case anybody still uses Yanfly's ATB.  My apologies if this is not the place to ask about interactions involving an unsupported plugin.


What I wish to do is to check for whether or not a unit is in Casting Time, and use that as a <Custom Passive Condition>.  I would like to know if this is even possible.  I've tried digging through the code for Yanfly's ATB plugin, but I could not understand what was going on, perhaps owing to my inexperience with JavaScript.  My current best guess is that what I wish to check for is user.isATBCharging(), but that doesn't seem to be doing anything when used as the <Custom Passive Condition>.


Any help you guys can give would be very much appreciated.  Thanks in advance.
 
Last edited by a moderator:

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
797
Reaction score
350
First Language
English
Primarily Uses
N/A
Try this:


if (user._atbCharge && user._atbCharge > 0)


That should work for a conditional for if a battler is currently charging.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games? And, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top