Need help with a Lava Chase Sequence

Hello there, i'm currently trying to make a chase sequence with a lava tsunami sort of thing (sorry for scuffed ms paint explanation)
1661068940772.png

I've tried with "Event Touch" Through events but they only trigger while the player is moving (I believe it's because Through disables passability checks but i'm unsure) so it can be cheesed very easily, I tried with an invisible event that chases you at roughly the same speed as the lava using Yanfly's Event Chase but it gets stuck everywhere, and i'm honestly at a loss.
1661069129710.png

I'm not much of a scripter and I can't find any plugins so I figured I might as well ask over here, any help is appreciated 😉
Hello there, i'm currently trying to make a chase sequence with a lava tsunami sort of thing (sorry for scuffed ms paint explanation)
View attachment 238468
I've tried with "Event Touch" Through events but they only trigger while the player is moving (I believe it's because Through disables passability checks but i'm unsure) so it can be cheesed very easily, I tried with an invisible event that chases you at roughly the same speed as the lava using Yanfly's Event Chase but it gets stuck everywhere, and i'm honestly at a loss.
View attachment 238469
I'm not much of a scripter and I can't find any plugins so I figured I might as well ask over here, any help is appreciated 😉

What I do is set up a common event with a parallel trigger that constantly checks the Player X and Y and saves them to variables. That way I have a pair of variables to use that represents where the player is at all times.

Control Variables : #1 Player:X = Map X of the player
Control Variables : #2 Player:Y = Map Y of the player

I think there is a script command to access that information too. But I'm inexperienced at scripting so I better avoid that. But I'm sure there are others here who can probably make this easier by skipping this step.


Then you might can try this: on your lava event set the trigger to parallel and write:

Set Movement Route : This Event (wait)
Through ON
Speed: (what ever you want)
Move Toward Player

Control Variables : #3 = Lava X = Map X of this Event
Control Variables : #4 = Lava Y = Map Y of this Event

If : #3 Lava X = Player:X
If : #4 Lava Y = Player:Y
(put whatever you want to happen when the player is touched by lava here)
End
End

Maybe this will help get you the effect you're looking for.
Maybe this will help get you the effect you're looking for.
Works like a charm, thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-lava-chase-sequence.150668/