I been looking around to see if there is any answers but I can not find any, the goal i'm trying to do is when the enemy attacks (spell or physical) it gains more power like an attack increase. I been trying to make one on skills but there appears to not have a way to let the enemy get buff after an attack. There's no plugin either, so i'm asking if it is possible or maybe i'm missing something.
How to buff enemy after they attack?
Javascript/Plugin SupportMost use script calls in the damage formula to do it. I don't know the command though. I'll move this to Javascript support and someone who knows the call can do it.
You can place the self-buff in the skill's damage formula. I think the correct way to do it in MV is to place this string before the rest of your damage formula:
a.addState(n);
Replace "n" with the ID of the buff state you want to add.
If you want to make the state stack with each use of the boss' attack skill, then you'll need a plugin which allows for stacking states. Yanfly has one of these in his library.
I recommend giving the boss a separate attack skill, rather than using the default Attack (skill #1) in his skill list.
a.addState(n);
Replace "n" with the ID of the buff state you want to add.
If you want to make the state stack with each use of the boss' attack skill, then you'll need a plugin which allows for stacking states. Yanfly has one of these in his library.
I recommend giving the boss a separate attack skill, rather than using the default Attack (skill #1) in his skill list.
another option is using a variable as part of the damage formula and skills trigger events that raise those variables with each use.
troop events can reset the variables every fight allowing player skills that gain strength with each use.
variable linked skills can do many things when used creatively
v[n]
replace n with variable ID
troop events can reset the variables every fight allowing player skills that gain strength with each use.
variable linked skills can do many things when used creatively
v[n]
replace n with variable ID
Original thread: https://forums.rpgmakerweb.com/threads/how-to-buff-enemy-after-they-attack.115295/