Need Help With Creating a Event That Damages The Player When Passing Through It

Hey all,

I have recently picked up RPG Maker MV during the steam autumn sale, and right away I went to try and make my first game.
But the problem I am encountering right now is making a fireball or any type of event that travels along a set route, and if the player were to come into contact with it then it would damage them a certain amount and keep traveling its path: creating some physical obstacles in-between battles. But right now I'm really lost on how I would even do something like that, If its even possible in the engine.

Any help would be appreciated!
Hello,

If you don't mind advice from someone who just got MV in October, you may want to take a look at Galv's Map projectiles. I haven't used them yet, but they look incredible.

If you want to do it yourself, then you can try something like this:

Had to edit my screenshot, updated 9:09.
1607188210090.png


"Set Movement Route: This Event" is used to allow the event to continue past the player after hit. Flash Screen is just present so I personally see the event occurs.

Noteworthy, I used a script command "Event Commands Page 3" to add $gameParty.leader().hp -= 20, which simply checks who the party leader is and subtracts 20 (change to whatever digit you like) from the existing HP.

There is an empty Event Page 2, just make sure to set the Self Switch condition. Note, the projectile holds its Through ON property set from the last event page so it will move through all other obstacles.

1607188230960.png


Hope it helps!
Oooh, I feel like we're getting somewhere, but its still not really what I have in mind. Alright let me explain the scenario to you so you get a better idea of how I want the event to act.

So the player has to walk down a narrow path, but just to add some difficulty to the path, I want some fire balls going back and forth across the path, so the player has to wait for some of them to pass then can keep going. The problem is the fireballs only activate once and damage the player once, then just stay idle.

Hope I'm making sense with this.

Thanks for assisting me again!
This will help you. Basically set the fire ball to parrell and add in wait times every 60 is 1 second. so around 120 to 180 is what you need between each shot. see guide below.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-creating-a-event-that-damages-the-player-when-passing-through-it.130643/