How Do I Start a Timer Every Time a Player Enters a Room?

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
I want to make a system in which every time the player enters the same room, a 30 second timer starts and when it reaches 0, something happens. Currently, I have an event that almost works how I want it to, when the player enters the room the first time everything works. The issue is that when the player enters the room, leaves, and re enters, the timer doesn't work anymore. I want it to activate every time the player enters, not just once. Any help would be appreciated. I'll include screenshots of how I have the event currently set up below.
 

Attachments

  • Untitled.png
    Untitled.png
    271.4 KB · Views: 2
  • Untitled2.png
    Untitled2.png
    278.4 KB · Views: 2

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,705
Reaction score
2,806
First Language
English
Primarily Uses
RMMZ
You'll have to turn that event's self switch off in the event that transfers the player out.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,030
Reaction score
1,507
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi there!
If your "room" means a map, you can just create an autorun or parallel event to start the timer then ERASE this event.

Every time you enter on this map, this event will play, because erased events appear again when you enter the map. But if you turn switches, you will have to control(turn them on/off) when a player leaves/enter the map.

And you can check the timer with another event.
 

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hi there!
If your "room" means a map, you can just create an autorun or parallel event to start the timer then ERASE this event.

Every time you enter on this map, this event will play, because erased events appear again when you enter the map. But if you turn switches, you will have to control(turn them on/off) when a player leaves/enter the map.

And you can check the timer with another event.
Hi, I do mean a map. I tried doing what you said, but erasing the event isn't working. Maybe I'm going about erasing the event incorrectly. I'll include screenshots below, could you tell me what I'm doing wrong?
 

Attachments

  • Untitled.png
    Untitled.png
    269.6 KB · Views: 1
  • Untitled2.png
    Untitled2.png
    277.4 KB · Views: 1

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
You'll have to turn that event's self switch off in the event that transfers the player out.
How would I run a check that sees if the player has been transferred out of the map? Sorry, I'm kind of a noob
 

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hi, I do mean a map. I tried doing what you said, but erasing the event isn't working. Maybe I'm going about erasing the event incorrectly. I'll include screenshots below, could you tell me what I'm doing wrong?
Hey man, I actually ended up figuring it out, thank you so much!
 

Latest Threads

Latest Posts

Latest Profile Posts

I don't believe it. I actually did some proofreading in my game - and fixed some grammar errors! I feel so accomplished, knowing I can actually proofread my own writing!
...I've had a bad day, okay? Bad enough for me to want to proofread stuff. :yswt2:
Ughhh, July is not my month. Thankfully, it's nearly done.

I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!
Ugh, I opened MV after a few weeks and I'm completely lost on what I was working on.
Does it happen to someone else or am I the only disorganized one around? :kaoswt:
xH5Fk2f.jpg
Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.

Forum statistics

Threads
113,667
Messages
1,076,534
Members
147,690
Latest member
thuthuatxocdia
Top