Skill that combines damage and debuff

sonnie460

Warper
Member
Joined
Jan 5, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
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 :rhappy:
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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.
 
Last edited:

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
@Kes you were right in it, even to the point of the function being addDebuff.
a.addDebuff(2,3); a.atk * 4 - b.def * 2
 

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top