New account registration is temporarily disabled.

[RMVX ACE] NPC TOUCHES AN EVENT = GAME OVER

Posts

Pages: 1
I am doing a big battle scene and I need to make it so that if the enemy (NPC) touches an event, it will be game over. How do I go about this?
Solitayre
Circumstance penalty for being the bard.
18257
You can't really check for collisions between NPCs, at least not without scripting, but you can check to see if an NPC has reached a certain position on the map. You'll want a parallel process that checks the position of that NPC. You can use variables to keep track of the enemy's X and Y coordinates. That's one way I can think of doing it.
1. Make sure the player can't touch the event
2. Make the event walkable, trigger on Event Touch and have it run a Game Over.

Very easy to event.
LightnngLord2, I tried that one and it doesn't work. When the NPCs are on the point, it doesn't do anything, however when the player touches it, it's "game over".

All else: I'll try to do the variable, but when I look the variable is set to X and above, it doesn't look like it has a setting for equal. I'll give it another look at see if she works.
You want to use it in conjunction with conditional branches. So set variable x to event x, and variable y to event y. Then use conditional branches to check to see if variable x is equal to the x of the death event. Inside that check to see if variable y is equal to the y of the death event. If so, death, if not jump back to the start. Easy.
Yep the conditionals solved it, thanks for the help.
Pages: 1