Hi all,
I'm very new to RPG Maker. I have done all the tutorials in the help section of the game but having trouble resetting an event. I want the player to enter an area, receive an explanation, then be able to go about their business and if 10 minutes have passed, the player will receive the explanation again.
This is my current setup and it works twice but then stops working altogether:
Event placed on the sub-map:
Event page 1 (trigger: player touch, priority below characters)
◆If:DisableOasisExplanation is ON
◆Erase Event
◆
:Else
◆If:OasisExplanationReset is OFF
◆Text:None, Window, Bottom
: :There is some text here
◆Control Switches:#0005 OasisExplanationReset = ON
◆
:End
◆
:End
Event page 2 (trigger: parallel, priority below characters)
◆Common Event:ResetOasisExplanation
Common event: (trigger: parallel, switch: #0005 OasisExplanationReset)
◆Loop
◆Wait:60 frames
◆Control Variables:#0001 Wait10mins += 1
◆If:Wait10mins = 5 (set to 5 secs for testing, changing to 600 when functional)
◆Break Loop
◆
:End
◆
:Repeat Above
◆Control Switches:#0005 OasisExplanationReset = OFF
The reason I'm using a common event is because it is my understanding that it runs on all maps and events placed onto a map only run if the map is loaded. Is that correct?
Basically, I want to remind the player of the explanation if they've gone away for too long and forgotten.
Thanks in advance!
I'm very new to RPG Maker. I have done all the tutorials in the help section of the game but having trouble resetting an event. I want the player to enter an area, receive an explanation, then be able to go about their business and if 10 minutes have passed, the player will receive the explanation again.
This is my current setup and it works twice but then stops working altogether:
Event placed on the sub-map:
Event page 1 (trigger: player touch, priority below characters)
◆If:DisableOasisExplanation is ON
◆Erase Event
◆
:Else
◆If:OasisExplanationReset is OFF
◆Text:None, Window, Bottom
: :There is some text here
◆Control Switches:#0005 OasisExplanationReset = ON
◆
:End
◆
:End
Event page 2 (trigger: parallel, priority below characters)
◆Common Event:ResetOasisExplanation
Common event: (trigger: parallel, switch: #0005 OasisExplanationReset)
◆Loop
◆Wait:60 frames
◆Control Variables:#0001 Wait10mins += 1
◆If:Wait10mins = 5 (set to 5 secs for testing, changing to 600 when functional)
◆Break Loop
◆
:End
◆
:Repeat Above
◆Control Switches:#0005 OasisExplanationReset = OFF
The reason I'm using a common event is because it is my understanding that it runs on all maps and events placed onto a map only run if the map is loaded. Is that correct?
Basically, I want to remind the player of the explanation if they've gone away for too long and forgotten.
Thanks in advance!