Sap State? - Based off FF12 Spell

Is it possible to create a state similar in how Sap works in Final Fantasy 12?


For those not familiar, it is a negative status ailment that causes a the victim to constantly lose hp at a small but fast rate. I'm currently using Yanfly's ATB system and wanted to have something like this state as another debuff for my game, causing damage whenever ticks are occuring and pausing for actions.


Video Example of Status below, very quickly into the fight Diabolos will inflict most of the party with a variety of status ailments including sap, if you watch the parties health at the bottom right you'll see affected members steadily losing HP, this is the effect I'm shooting for.
I am not sure I see the difference between this state and what a standard "poison" effect does. In this case, you would go into the states tab of the database, create the state you want ("sap", for instance), right-click on "traits", click on "edit", go to the "param" tab, check "ex-parameter" and, in the dropdown menu, select "hp regeneration". Afterwards, you only need to input a negative number on the text cell underneath it and that's the percentage of the afflicted actor's hp that will be lost on each turn. Hope that helps.
Poison / HP regeneration in rpg maker is designed to trigger after the user performs an action, even with YanFly's ATB System it works this way.


What I am trying to do is cause a constant drop of HP while the ATB Gauges are filling, only pausing when a character is performing an action, then continuing to drop.
Ah, a real-time drain instead of turn-based. Sorry, I misunderstood your question, I hope someone more knowledgeable can help, but I think this would require a plugin.
I wonder if this video is what you want 🙂
That is the effect I am essentially shooting for yes ^_^



EDIT: Didn't realize until after I posted that it is your plugin xD, does the plugin work with Yanfly's plugins? and as a substitute to his ATB system? And would it end up causing poison to work the same way as the effect I'm looking for with my Sap state? Because I intended for poison to work as it did before where the damage ticked after a user performed an action.



I've temporarily done what I wanted taking advantage of yanflys buff/state core mod by using the notetags for when the state leaves to apply an alternate Sap state and deal damage, which then does the exact same thing applying the original Sap state when it leaves, since the buff is permanent until removed or battle end this seems to work for now.


Basically looks like this:

Spoiler
<Custom Leave Effect>


if (user.hp > 1) {


this._sapdmg = Math.floor(user.mhp / 100);


var value = this._sapdmg * (-1);


user.gainHp(value);


user.addState(23);


} else {


null;


}


</Custom Leave Effect>


<Hide Turns>


The state lasts essentially "1 turn", 20 ticks in my Yanfly Battle Core settings, which came out to 1 turn being about 1 second. Easy to time buffs that way ^_^


23 is the alternate Sap state (same icon and all) and has the same notetag just applying the original state(22) again, causing it to loop. I originally tried to just make the (22) loop but for some reason when i did user.addState(22) to apply the Sap state again it just kinda kept the state but the state had no turns and just sat on the character.
EDIT: Didn't realize until after I posted that it is your plugin xD, does the plugin work with Yanfly's plugins? and as a substitute to his ATB system? And would it end up causing poison to work the same way as the effect I'm looking for with my Sap state? Because I intended for poison to work as it did before where the damage ticked after a user performed an action.

1. It depends on which Yanfly plugins are used, but DoubleX RMMV Popularized ATB Core is extremely unlikely to work well with YEP Battle Core without a complete rewrite of mine(and I've no plan to do yet).


2. I haven't checked whether mine currently can do anything Yanfly's ATB can do, but you can still request a new addon for those can't be done using mine right now.


3. Ordinary poison state can work completely separately from sap states. Non countdown states having negative HRG will be the former and countdown states applying damage to the owner whether its turn updates will be the latter.
Yaaaa... Kind of a few plugins lol


So I guess for now I'll use my fix unless someone can help come up with another way that wouldn't involve completely redoing my plugin list xD

Original thread: https://forums.rpgmakerweb.com/threads/sap-state-based-off-ff12-spell.56075/