Imperial_Steele

Villager
Member
Joined
Aug 22, 2021
Messages
14
Reaction score
6
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
175
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
6
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

yo i made a post but it hasnt really gotten any answers so uhhhh
Finished switching to a new PC. Now I could potentially start working at projects or plugins again if I feel the motivation to do so.
If you don't read the news, you are uninformed. If you read the news, you are misinformed.
Custom slip rates and custom ailment durations for enemies really opens up the floodgates for status effect use. I can have Poison and Time Stop affect bosses without it breaking their balance! Finally, a healthy middle ground.

(Especially after I cooked up a thing that prevents you from re-applying deadly states more than once in specific occassions.)
Voice.gif
The Voice... They usually show up to talk to you about leaving your mark on the world, which is one of the major themes of my game... How will you be remembered by society.

Forum statistics

Threads
124,536
Messages
1,164,282
Members
163,366
Latest member
kurutami
Top