Have a skill decrease stats if a state is inflicted.

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I have a skill that induces a frozen state. I have a another skill that I want to have lower the defense and speed of its target IF and only IF the target already has the frozen state. Are there any scripts that can let me do this? Thanks in advance.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
First Language
English
Primarily Uses
RMVXA
You can use the damage formula for the skill:
Ruby:
if b.state?(ID); b.add_debuff(3, TURNS); b.add_debuff(6, TURNS); end; damage_formula_here
You'll need to replace ID with the ID of the frozen state and TURNS with how many turns you want the debuffs to go for. damage_formula_here should be whatever the damage formula is (e.g. a.atk * 3).

EDIT: fixed up the formula
 
Last edited:

Kricketot

The
Veteran
Joined
Apr 19, 2015
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
You can use the damage formula for the skill:
Ruby:
if b.state?(ID); add_debuff(3, TURNS); add_debuff(6, TURNS); end; damage_formula_here
You'll need to replace ID with the ID of the frozen state and TURNS with how many turns you want the debuffs to go for. damage_formula_here should be whatever the damage formula is (e.g. a.atk * 3).

I gave it a try, and it doesn't work. I double checked to make sure it's all set up properly, yet it fails to both deal damage, and inflict the debuffs. I'll post the formula in case I genuinely am that blind.

Ruby:
if b.state?(35); add_debuff(3, 3); add_debuff(6, 3); end; a.mat * 3 - b.mdf * 2
 

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

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,190
Members
137,772
Latest member
Kirakirna
Top