Yanfly Buff/States / State Categories Adaptation - Treat Debuff As State

artoni

Writer, Editor
Veteran
Joined
Jan 18, 2014
Messages
115
Reaction score
162
First Language
English
Primarily Uses
RMMV
Hi all-

I was wondering if it's feasible for someone to make an add-on to Yanfly's plugins that, as the title says, treats a debuff as a state.

To give the situation; I have a fight right now where characters will experience an agility debuff. I have a skill that I'm designing to remove a single negative condition (except death), called 'Shake-Off'; I'd like it to be able to, well, shake off the debuff as well!

Right now I can have it remove a single negative using State Categories and having it 'Remove 1 State Category: Ailment', but I'm trying to figure out if there's a way I can either utilize a plug-in or just add some code for it to Eval. As such, this may not necessitate a full-plugin. ¯\_(ツ)_/¯ I don't know nearly enough Javascript to figure out the details, but I presume that one could do an if...else branch?

Either way, some help would be appreciated!
 

VeryXInh

Veteran
Veteran
Joined
Jan 7, 2019
Messages
90
Reaction score
115
First Language
Japanese
Primarily Uses
RMXP
Erm.. why don't you just remove it with default command?
 

artoni

Writer, Editor
Veteran
Joined
Jan 18, 2014
Messages
115
Reaction score
162
First Language
English
Primarily Uses
RMMV
The current design of the skill has it basically remove 1 bad status; this could be either a Debuff or Ailment. As far as I can tell, the default way of removing debuffs has you specify which one, egi- Str; not so useful if the one you're afflicted with is Agi.

In addition, let's say you have both a bad State/Ailment and a Debuff; from what I've grasped, if you have the remove Debuff in there, it'll do it as well as remove the state, assuming we're using the Yanfly plugin to Remove 1 State Category. If that makes sense. This is removing 2 negative conditions, as opposed to the just 1 I'm after; I'm after Either/Or.

...or am I blind and there's already a way to do this? If so, I'd love a screenshot. :kaoswt:
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
803
Reaction score
350
First Language
English
Primarily Uses
N/A
With some js know-how, you can do this pretty easily.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
803
Reaction score
350
First Language
English
Primarily Uses
N/A
Hey there.

The way I responded before was a little jerkish of me.
So to apologize, I made a plugin solution for you.


Place this one right under the State Categories one and follow the help instruction for the right function call.

Please let me know if there are any issues with it.
 

artoni

Writer, Editor
Veteran
Joined
Jan 18, 2014
Messages
115
Reaction score
162
First Language
English
Primarily Uses
RMMV
I had figured it was fairly obvious I didn't have the JS know-how to do it, haha. But I appreciate you coming back on this and will give it a try right away.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top