I want to increase an Actor's defense/ offense temporarily with a skill. I know add buff exists but it's percentage based. I want to make something static, something that you always know is going to give you 10 defense or something like that. Basically like the Grow effect but temporarily.
Temporarily increase Actor Defense/ Offense with skill.
RPG Maker MV SupportYanfly's Buff States Core Plugin + Yanfly's Passive States and in a "note" field in your desired state put the following code:
for further similar params a short note:
0 - HP
1 - MP
2 - Atk
3 - Def
4 - Mat
5 - Mdf
6 - Agi
7 - Luk
Code:
<custom apply effect>
target.addParam(3, x); //x is amount of def to increase, 3 refers to numeric ID of param to change
</custom apply effect>
<custom remove effect>
target.addParam(3, -x); //x is amount of def to increase, 3 refers to numeric ID of param to change
</custom remove effect>
for further similar params a short note:
0 - HP
1 - MP
2 - Atk
3 - Def
4 - Mat
5 - Mdf
6 - Agi
7 - Luk
Thank You. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/temporarily-increase-actor-defense-offense-with-skill.151197/