Repeating boulder trap

Illustration.jpg

as per the image im trying to get a boulder to "roll" from point a to point b and then loop that action with out the use of an activation event. with the intention to have 3 rolling simultaneously with middles timing being offset,

i hope this makes sense
You can set the stone's movement in the route configuration.
To check if it has reached point B, you can use coordinate variables, where if the Y position is greater than or equal to the hole's position, the event is resent to point A:

Variable [Y-Stone] = EV002: Coordinate's Y
Conditional Branch: Var[Y-Stone] > 19
Teport Event: EV002[16,1]
End
I don't have a complete view of the map to know the exact numbers, this is just an example.
You can set the stone's movement in the route configuration.
To check if it has reached point B, you can use coordinate variables, where if the Y position is greater than or equal to the hole's position, the event is resent to point A:

Variable [Y-Stone] = EV002: Coordinate's Y
Conditional Branch: Var[Y-Stone] > 19
Teport Event: EV002[16,1]
End
I don't have a complete view of the map to know the exact numbers, this is just an example.
They're on MZ


--

@RanchyBoi96

Am about to step out so can't provide a full walk through

Should be simple enough with 3 events. Each running as parrallel events.


Start each event blank for however many frames (based on your timing preferences), then have them self switch to the pages with movement. Each events interaction page (the one showing the actual boulder) should be set as touch player so the acttions on tthe page (tthe right panel) can run whattever script/plugin command getting hit with the boulder would do.
They're on MZ
I know, this represents a "pseudo-event", similar to pseudo-code when the programming language isn't the focus of the explanation.

The only safe way to prevent any kind of teleport to the same map or the stone's route from losing its step count if it collides with the player or another event before reaching point B is by checking the Y coordinate.
Should be simple enough with 3 events. Each running as parrallel events.
as those doesn't require parallel in the way Dev_With_Coffee, but instead of
Y variable, they can simply use action button do nothing or set it on "touch"
than simply use move route "move down" X times and teleport up to repeat.

however, they may need a scriptcall for the touch part so the boulder go through
and dmg them or be game over (depending on mechanic).

moveroute counts a parallel in its own so it isn't require that way ^^
If you're going to reposition via script call, it's better to do it on the route itself and leave the event trigger open for collision with the player:
1767754649018.png


Script:
this.locate(X position, Y position)

Original thread: https://forums.rpgmakerweb.com/threads/repeating-boulder-trap.181798/