help with two different event trigger

Hello community,

i have a problem with events, which occupied me for a longer time.

I'm afraid I cannot solve it without help. I'm already thinking about giving up this project, even though

i have already overcome all other technical obstacles.

I think, you are my last hope. 🙂

I have two related events:

1. Every time the player moves, another event (opponent) is moving toward the player.

--> I use the trigger (parallel process) for the opponent event.

2. When the player touches the opponent event, a battle is triggered.

--> i use player touch for that on another event page for the opponent event.

It sounds simple, but i just get one of the two events run at the same time.

I read something about event pages (last page begins first in RPGMV) in another thread.

Of course i could have two separate events for that, but i have an respawn system(copy of existing opponent events) whichs also must be considered.

I look forward to suggestions.
Any event has only one active page at a time - that is anchored extremely deep in the engine and cannot be changed without creating a lot of other problems.

Which means it's impossible to trigger another page by player touch if the parallel process is active.

Forget anything like that, you need to find a different logic as a solution.

My suggestion would be to have the parallel process that checks the player for moving also compare the player and event position, and if the detected move of the player would end on the event, trigger the battle in the parallel process.

If you need help with that, post screenshots of the event page(s)
Okay i see.

Thanks for your advice and the information!

It should look something like this?

1.) Parallel prozess on map checking if player is moving (with button input processing?)

2.) Define player map coordinates as variable (x/y)

3.) Define opponent map coordinates as variable (x/y)

4.) If player moves and player var x/y are the same as opponent var x/y -->Battle!

But your suggestion will only work if i know which events are on the map, right?

Edit:

Andar tell me if I have misunderstood you!

new idea:

Maybe i can use a script (this event following player on player move) and set a flag true in the opponent event.

Then i would let the trigger for the opponent event on event touch (-->battle start)

Is this possible if i would know javascript? 🙂    
that's why it needs to be the event itself checking its own position against the player position.

And you need to show us your event and its logic if you want more help, because it depends on how your event works.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-two-different-event-trigger.51035/