Need a hand with Conditions to make a counter for my game.

There is a useful tutorial about counters in the material, but I'm afraid I can't quite wrap my head around the simple example they gave and what I am trying to do. I want a counter in one room of the game's location to go up every time the player enters the room and for a different message to pop up each time the number increases. Does anyone have a suggestion of what I could do in this situation?
"I want a counter in one room of the game's location to go up every time the player enters the room"

Put "NumberVariable RoomCounter Add value 1" in the first line of your room scene, so that every time you go to this room scene, the numbervariable will +1.

" every time the player enters the room and for a different message to pop up each time the number increases"

You could use condition, something like this:

condition NumberVariable RoomCounter = 1
show message A
condition NumberVariable RoomCounter = 2
show message B
condition NumberVariable RoomCounter = 3
show message C
....

However, I'm not sure I get your Requirements?If I enter this room 100 times... you would pop up 100 different messages....?
"I want a counter in one room of the game's location to go up every time the player enters the room"

Put "NumberVariable RoomCounter Add value 1" in the first line of your room scene, so that every time you go to this room scene, the numbervariable will +1.

" every time the player enters the room and for a different message to pop up each time the number increases"

You could use condition, something like this:

condition NumberVariable RoomCounter = 1
show message A
condition NumberVariable RoomCounter = 2
show message B
condition NumberVariable RoomCounter = 3
show message C
....

However, I'm not sure I get your Requirements?If I enter this room 100 times... you would pop up 100 different messages....?
No, that's very helpful, thank you. There's a limit on the number of messages that would appear, so for instance, roomcounter = 4 would equal a game over, so it would either call a scene or show a specific message, correct?
No, that's very helpful, thank you. There's a limit on the number of messages that would appear, so for instance, roomcounter = 4 would equal a game over, so it would either call a scene or show a specific message, correct?
Hmm...I see.
Yes, when the number reach the gameover limit, call a scene or show specific message, that is fine.
Hmm...I see.
Yes, when the number reach the gameover limit, call a scene or show specific message, that is fine.
Okay, thanks so much.

Original thread: https://forums.rpgmakerweb.com/threads/need-a-hand-with-conditions-to-make-a-counter-for-my-game.148081/