Stuck on a skill.

Watts03

Warper
Member
Joined
May 29, 2020
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
For one of my skills I want to make it so the next attack they take that does fire damage will do double damage, then I want them to go back to taking normal damage from fire attacks. How would this be done as a state would just wear off after turns or damage but I want it to stay on until they specifically take fire damage and then they'd go straight back to normal. Is this something obvious that I'm missing or does this need a more complex solution?

I have no idea if this is in the right place as this is my first post on here.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,251
Reaction score
7,136
First Language
German
Primarily Uses
RMMV
this will require a plugin as the normal state effects don't check for damage element.
 

Watts03

Warper
Member
Joined
May 29, 2020
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
this will require a plugin as the normal state effects don't check for damage element.
Any idea which one I'll need to use?
 

Danitinkis

Deadly and sexy
Veteran
Joined
Dec 31, 2016
Messages
117
Reaction score
59
First Language
Spanish
Primarily Uses
RMMV
In the state's Notes, add the next code. You will require Yanfly's Buffs and States core:

Code:
<Custom React Effect>
// Get the fire element ID.
var fire = 2;
// Check if fire damage is dealt.
if (this.item().damage.elementId === fire) {
  // Remove the status effect from target.
  target.removeState(80);
}
</Custom React Effect>
You'll need to change the numbers of your Fire element ID (var fire = X) and your State (target.removeState(X)).
Also, you will need to add in the state parameters the fire multiplier by 200%.
I hope this helps.
EDIT: I changed this like 5 times, I'm very perfectionist XD.
 

Watts03

Warper
Member
Joined
May 29, 2020
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
In the state's Notes, add the next code. You will require Yanfly's Buffs and States core:

Code:
<Custom React Effect>
// Get the fire element ID.
var fire = 2;
// Check if fire damage is dealt.
if (this.item().damage.elementId === fire) {
  // Remove the status effect from target.
  target.removeState(80);
}
</Custom React Effect>
You'll need to change the numbers of your Fire element ID (var fire = X) and your State (target.removeState(X)).
Also, you will need to add in the state parameters the fire multiplier by 200%.
I hope this helps.
EDIT: I changed this like 5 times, I'm very perfectionist XD.
Thank you for this, really helpful!
 

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

Latest Threads

Latest Posts

Latest Profile Posts


:3c here's a thing i made a while while while back
Tried mochi for the first time. It's quite nice. Has a pleasant smell and taste, and is nice and chewy.
made a bio for the protag in my project!
Beggar : "I haven't eat for days..."
Kid : "Just do crime! You will get daily necessity for free in prison~"

Forum statistics

Threads
99,159
Messages
962,454
Members
130,725
Latest member
teendinsaikha
Top