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,388
Reaction score
7,215
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
118
Reaction score
60
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 Profile Posts

Where's this sudden heatwave come from? It's not even sunny, it's just hot. Hate it!
I'm slightly disappointed that the MZ codebase still uses core.js, managers.js, objects.js, scenes.js, sprites.js and windows.js instead of core/Bitmap.js, core/Graphics.js, managers/AudioManager.js, managers/DataManager.js, etc...
just a few more hours until the toughest, most pressure 72 hours of my life, wish me luck guys
Working on some bosses for my game-

Forum statistics

Threads
100,562
Messages
977,243
Members
132,143
Latest member
GMVStudios
Top