help with two different event trigger

Chilifan

Villager
Member
Joined
Nov 19, 2015
Messages
13
Reaction score
5
Primarily Uses
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
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)
 

Chilifan

Villager
Member
Joined
Nov 19, 2015
Messages
13
Reaction score
5
Primarily Uses
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? :)    
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top