RMMV I need help with <custom react>

STARFALL

STARFALL
Veteran
Joined
Jul 6, 2020
Messages
56
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
142
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
56
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 Posts

Latest Profile Posts

I had lots of fun! Kids loved me, and some took pictures. Unfortunately, the videos didn't send... but you'll see Chica in action when I do a trailer for Fandom Scouts!
Dama wrote on akoniti's profile.
Hi
Thanks for your review.
I was checking the trailer for details and as the woman shut the door at the exact moment the song I was hearing said "you slim the door" and I couldn't resist to add it there. :D And I used this idea one more time on another scene.
Just doing some tileset tinkering again...
rux
Someone please help me make my game.
I need someone to volunteer, I am on my knees man.

Forum statistics

Threads
104,690
Messages
1,008,147
Members
136,183
Latest member
brandini503
Top