I'm designing an area that will be run sort of like a d&d module. In certain rooms I'd need to check if the pc's are dwarven, or roll random values like rand_number(1, 20) to determine if they make certain checks and then display some information if they make the check and display nothing if they fail it, i'd also want to make some of these checks 1 time only, per visit to the zone.
The DM will basically be the triggers throughout the zone, and chain quests will keep them going through it.
My question is, that if i did it this way, i'd have to set and check variables in each room they visit that had a trigger attached, so that going back through the room wouldn't awaken or force a new roll to avoid x action. Is there anyway that once a player is done in the zone to simply strip all of these 'temporary' variables from them? So that their next visit to the zone can result in them getting the messages/checks all over again.