Fixed stat buffs/debuff help

Hi all,

How do i implement a skill that applies a fixed buff or debuff, lets say gives an ally +5 defence for 2 turns? The default states all are percentage based. I've heard you can do this with yanflys buffs and states plugin, but not sure how to go about doing it.

Thanks
You'll want Yanfly's Buffs and States Core and also the Base Param Control. Buff and States Core lets you set the "buff rate", while Base Param Control lets you change the formula where buff rate is applied (from the plugin's parameters).

The default formula for a stat in Base Param Control will look like:
(base + plus) * paramRate * buffRate + flat
Read as: (base stat + equipment) * multipliers * buffs + flat bonus

And the default formula for buff rate in Buffs and States core looks like:
this._buffs[paramId] * 0.25 + 1.0
Read as: (de)buff stacks * 25% + 100%

A now, if you want that to be additive, you could change them to something like this:
Stat formula: (base + plus) * paramRate + buffRate * N + flat
Buff rate formula : this._buffs[paramId]

Where N is how "big" you want each buff stack to be- in your example, it'd be 5. You need to change the stat formula for each of the eight basic stats (hp, mp, atk, def, mat, mdf, agi, luc), and you can use a different value of N for each: Maybe an attack buff is worth +5, but a max HP buff is worth +20, and a defense buff is only worth +4. Debuffs, then, are worth the opposite amount.

Now, remember, these values are per stack, so if you want to give someone a +10 attack buff, you'd buff them twice- the first raises it to +5, the second to +10. You can do that in the skill editor just by having two "add buff" lines in a row. The Buffs and States core should also let you set the cap on how high buffs (and how low debuffs) can be stacked.

Hope that helps!
Alright this is perfect, thank you very much for taking the time to explain it all so simply for me!

Original thread: https://forums.rpgmakerweb.com/threads/fixed-stat-buffs-debuff-help.96169/