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,261
Reaction score
7,138
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

Inspired by @fluffymonster 's Cute Ghost
His name is POKO!
I made a giant tree + treehouse for the next country woods pack \o\
Calculated my tax refund - CHEERS
Looked at my student debt - cries
Still, might be just enough left over to pay for my new computer, which would be awesome!
And my student debt will be fully paid, which is also pretty nice.
They say nice guys finish last. But mean guys don't finish at all!
I keep forgetting how much I hate how VX-MV implements fences and autotile tables.

Forum statistics

Threads
99,414
Messages
965,045
Members
131,035
Latest member
KeziaG96
Top