Hello,
I am new to RPG Maker, working on my first game.
Im having trouble with conflicting events.
I want to interact with a character event in two ways.
First, when you initially touch the character, I want a timer to start.
But if you talk to the character before the timer ends, then the timer stops.
The problem is that while the timer is running, I seem unable to trigger the action button event at all.
Once the timer ends, the action button event works.
I've messed with this for a few hours now, and I cannot get it.
I tried experimenting with Common Events as well, but to no avail.
Thank you.
post a screenshot of the event, most likely you made a mistake with the triggers on the different pages of the event (you'll need different pages to make this work, it can't be done with a single page event).
you've ignored page priority - the active page is always the page with the highest page number.
1) page two will NEVER run, because page two and page three have the same conditions, and p3 has thew higher priority - page 2 is simply ignored.
2) page three can only run iof none of page 4 and 5 (which you didn't post) have their conditions fulfilled at that moment. Because if those higher pages have their conditions fulfilled at any time, they will take precedence over every lower page (including the first).
Please post the screenshots of page 4 and 5 for us to check - because of their higher page numbers they have priority and are thereby more important than the first three pages...
Aha! I did not know about page priority. Thank you very much.
I solved this issue by making the first event page the "Player Touch" event.
Put another way, The Event's Page 1 is triggered by player touch. And it is the only page triggered by player touch.
When the page triggers, it starts the timer and sets a switch "TimerRunning" to On.
The Event also turns on a switch called "Touched".
All of the Events in this "Player Touch" page are nested inside of a Conditional Branch dependent upon "Touched" being Off.
Therefore, when the player first touches the Event, the "Player Touch" trigger/page runs.
Since all of the actions in this page are nested inside Touched being off, this runs only once.
The last page in this Event is conditional upon "Touched" being On.
Therefore, since the touched page turns on the switch, as long as that switch is on, only the last page that meets the condition runs.
Then, I created a Common Event to handle ending the timer.
The Common Event is triggered as Parallel Process. And the Condition Switch is "TimerRunning".
The very first action in the Common Event is a Conditional Branch with the condition "Timer 0 seconds or less".
All of the other actions are nested inside this conditional branch.