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,254
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

have another character sheet! ill probably add some more details before i make my thread for this project
Every time the official RMWeb account makes a post, I think it's @Eliaquim writing it!

It's driving me crazy, but it's also wonderfully hilarious.
// Looks at Elfkisser, realizes he'd have to either install Windows 10 or compile it for Linux
// Didn't install Elfkisser.
Too much effort for a curiosity. :popcorn:
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.

Forum statistics

Threads
99,224
Messages
963,227
Members
130,813
Latest member
Gremter
Top