Imperial_Steele

Villager
Member
Joined
Aug 22, 2021
Messages
14
Reaction score
5
First Language
English
Primarily Uses
RMMV
I want to give the Player Character an option to "trip" an NPC. The way I figured it is I make the Actor move aside, move the other character down, play a "walk" animation to make the PC look like they're sticking their foot out, then replace the 2nd characters' graphic with a "fallen down" image, complete with sound effect.

However, I've hit a snag. The 2nd character won't move down past the PC once they've stepped aside. I've attached the relevant code snippet; what am I doing wrong?

As an aside, how can I make the "walk" animation only happen once, instead of looping? I've taken it out of the example I'm attaching because I thought that was soft-locking the event, but, nope. Still not doing anything.

Edit: updated title to say "solved"
 

Attachments

  • TripGaryCode.png
    TripGaryCode.png
    38.1 KB · Views: 5
Last edited:

Htlaets

Veteran
Veteran
Joined
Feb 1, 2017
Messages
321
Reaction score
174
First Language
English
Primarily Uses
Presumably this is what you're going for (P for player character G for Gary in this case):
1:
G
P
2:
G
->P
3:
|
GP

But three isn't happening, correct? The fact that P can move means the tile should be passable. Which means the event should work. Still, try giving Gary through and see if that works?
 

Imperial_Steele

Villager
Member
Joined
Aug 22, 2021
Messages
14
Reaction score
5
First Language
English
Primarily Uses
RMMV
Well holy crap, that worked!

I had the event in the tile he couldn't move to, so that it would be triggered by the player. Since the player could move into/through it, it didn't occur to me that other NPCs couldn't.

Thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

one of the coolest things I've learned from the forums is the ability to give yourself a hitbox. I have a move you can do on the fields. shoulder tackle. thanks to the forums, that tackle triggers self A switches on some events. NPC's and the environment now react to the tackle. awesome.
I really liked how this one turned out! :kaopride:
WYqMPf6.png

Character (Yes, this is a character): Nibiru the Primal Being from Yugioh.
Dragon Quest style enemy selection plugin work in progress:

Quest_Targeting.png

It's a simple targeting system from the NES era. Select an enemy group; single-target skills will target the first enemy in that group.

Quest-Targeting-Animated.gif
Somehow that granny topic got me... maybe I can come up with some more thematic stuff :3
Going live for tonight's stream! Kytt isn't feeling 100% tonight so the wifestream will be tomorrow and I'll be playing Final Fantasy XIV for this one instead. Twitch

Forum statistics

Threads
121,933
Messages
1,145,262
Members
160,207
Latest member
RiceKun
Top