RMMV I need help with <custom react>

STARFALL

STARFALL
Veteran
Joined
Jul 6, 2020
Messages
53
Reaction score
7
First Language
spanish
Primarily Uses
RMMV
I am using Yep_BuffStateCore and I am trying to make that when a player takes a hit from an 'X' element to play an animation on it. I was trying to enter some code in <custom react> but I don't know much about js. Could someone help me with a code?
 

Cythera

Veteran
Veteran
Joined
Jul 31, 2019
Messages
139
Reaction score
237
First Language
English
Primarily Uses
RMMV
Try this (it goes in a state notetag) :
JavaScript:
<Custom Respond Effect>
if(this.item().damage.elementId = x) {
target.startAnimation(y);
 }
</Custom Respond Effect>
Change x to the element ID in your database
Change y to the animation ID you want to play on the target
Let me know if that helps!
 

STARFALL

STARFALL
Veteran
Joined
Jul 6, 2020
Messages
53
Reaction score
7
First Language
spanish
Primarily Uses
RMMV
Try this (it goes in a state notetag) :
JavaScript:
<Custom Respond Effect>
if(this.item().damage.elementId = x) {
target.startAnimation(y);
}
</Custom Respond Effect>
Change x to the element ID in your database
Change y to the animation ID you want to play on the target
Let me know if that helps!
It's perfect for what I need, thank you very much.
 

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

Latest Threads

Latest Profile Posts

Woke up on an awful nightmare of being banned here because some mod didn't liked me in a super-heroes freeform round robin RP where I used throwing normal hammer as power and it was qualified being too OP. XD Nice to read you all guys. Will not wait next nightmares.
Staring at all the RPG Maker versions I have and realizing that my project has been a long time coming. But, I finally feel like I have the knowledge and experience to make it into something good.
We're almost done with the jam game! :D
I get scam calls all the time so today I gave them a piece of my mind. They hung up on me. Sweet revenge.

Forum statistics

Threads
104,321
Messages
1,005,557
Members
135,844
Latest member
andrewshetty123
Top