I need some help with creating a finishing move. What I need is quite simple yet I cannot figure it out. I'm using YanFly's plugins and I've watched videos and been reading stuff for a few hours now but still no luck. What I want is a move that deals damage to the enemy and puts a debuff on the CASTER, lowering his ATK for a few turns. This is because the damage of this ability will be high and I don't want it to be spamable. It's a warrior move so it's not going to use MP. Any help is appreciated.
Edit: Thanks guys, it's working now 🙂
You don't need a plugin for that, but something in the damage formula. I only know Ace syntax, so this will not work directly, but the essence is the same.
a.add_debuff(param_id, turns); damage here
I think it might be
a.addDebuff
The param ids start at 0, not at 1, so the ids are:
0 = mhp
1 = mmp
2 = atk
3 = def
4 = mat
5 = mdf
6 = agi
7 = luk
You need to specify the number of turns you want the debuff to last. So if you wanted a ATK debuff to last 3 turns it would be (again in Ace syntax) and using the default damage formula as an example:
a.add_debuff(2,3); a.atk * 4 - b.def * 2
Don't forget the semi-colon between the 2 parts. Try it and see if a.addDebuff works. If not, you'll have to wait until someone drops by and gives the correct MV equivalent.