So I'm trying to implement a hint system that tells the player if they missed any items in a room.
When you enter a room, a variable is set to the amount of items in the room. Each collected item lowers the variable by one and once the variable hits zero, consulting the hint system will tell you you got everything. In the debug room, this works.
So far, so good.
But now I'm seeing some complications with this moving forward.
I know I'll have to use that one variable for every room in the game. If there's more than one variable to check for, the hint system won't know which one is right and just display them all. That's why I made the system count down to zero.
This means that I need to set my variable to the correct number every time a room is entered, even if the player misses an item in a room, leaves and then comes back.
So what I was THINKING for this was that instead of having the initial action of picking up the item on Page 1 subtract from the variable, I could simply give every item that's been picked up already a command on Page 2 (aka the Self-Switch A ON-state after the item has been picked up) that subtracts from our variable, then ends the event.
This way, I can just have the warp zones leading into each room set the variable to the full amount for a room every time it's entered and have each picked up item subtract 1 until the amount is just right.
The problem is… I can't get this Page 2 eventing to activate on its own.
It DOES work just fine if I set the Trigger to Action Button, but it simply will not run at all if I set the Trigger as a Parallel event. The variable just stays as it is. (And Auto Run freezes the game, but I expected as much.)
So, how DO I run this? And if there's no way to run this, what's the alternative to achieving what I'm going for here?
When you enter a room, a variable is set to the amount of items in the room. Each collected item lowers the variable by one and once the variable hits zero, consulting the hint system will tell you you got everything. In the debug room, this works.
So far, so good.
But now I'm seeing some complications with this moving forward.
I know I'll have to use that one variable for every room in the game. If there's more than one variable to check for, the hint system won't know which one is right and just display them all. That's why I made the system count down to zero.
This means that I need to set my variable to the correct number every time a room is entered, even if the player misses an item in a room, leaves and then comes back.
So what I was THINKING for this was that instead of having the initial action of picking up the item on Page 1 subtract from the variable, I could simply give every item that's been picked up already a command on Page 2 (aka the Self-Switch A ON-state after the item has been picked up) that subtracts from our variable, then ends the event.
This way, I can just have the warp zones leading into each room set the variable to the full amount for a room every time it's entered and have each picked up item subtract 1 until the amount is just right.
The problem is… I can't get this Page 2 eventing to activate on its own.
It DOES work just fine if I set the Trigger to Action Button, but it simply will not run at all if I set the Trigger as a Parallel event. The variable just stays as it is. (And Auto Run freezes the game, but I expected as much.)
So, how DO I run this? And if there's no way to run this, what's the alternative to achieving what I'm going for here?