Mutt's Adventure
Example 136
★★Suppose we want to reward the player the first time he reaches a given room. The "unvisited" attribute is useful for this: unlike such constructions as "going to a room for the first time", it doesn't develop false positives when the player has merely tried to go to the room in question. "Every turn when the player is in a room for the first time" is also unhelpful, because it continues to be true as long as the player is in a room on his first visit there.
"Mutt's Adventure"
Use scoring.
Section 1 - Procedure
A room can be scored or unscored.
Carry out going to a unvisited scored room:
increment the score.
Section 2 - Scenario
The Incan Palace Compound is a room. "After numerous false leads through the jungles of Peru, and an arduous trek along the Amazon, you have arrived, at last, here: at Atagon, the lost city of untold treasure."
The startlingly intricate door is a door. It is inside from Incan Palace Compound and outside from the Treasure Room. "A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, [if open]stands open[otherwise]blocks progress[end if] towards [the other side of the intricate door]."
The description of the Treasure Room is "To your considerable surprise, the treasure room is stocked with art objects from a vast range of eras and geographical locations: beside the expected pre-Columbian gold there are Cycladic figurines, Chinese Tang-dynasty pottery, purses that might have been stolen from Sutton Hoo. [one of]If the British Museum developed a nasty expectorant cough, this is what you'd find in its hanky.[or][stopping]".
The Treasure Room is scored.
Test me with "in / out / in".
Test me with "in / out / in".
Incan Palace Compound
After numerous false leads through the jungles of Peru, and an arduous trek along the Amazon, you have arrived, at last, here: at Atagon, the lost city of untold treasure.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, blocks progress towards the Treasure Room.
>(Testing.)
>[1] in
(first opening the startlingly intricate door)
Treasure Room
To your considerable surprise, the treasure room is stocked with art objects from a vast range of eras and geographical locations: beside the expected pre-Columbian gold there are Cycladic figurines, Chinese Tang-dynasty pottery, purses that might have been stolen from Sutton Hoo. If the British Museum developed a nasty expectorant cough, this is what you'd find in its hanky.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Incan Palace Compound.
[Your score has just gone up by one point.]
>[2] out
Incan Palace Compound
After numerous false leads through the jungles of Peru, and an arduous trek along the Amazon, you have arrived, at last, here: at Atagon, the lost city of untold treasure.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Treasure Room.
>[3] in
Treasure Room
To your considerable surprise, the treasure room is stocked with art objects from a vast range of eras and geographical locations: beside the expected pre-Columbian gold there are Cycladic figurines, Chinese Tang-dynasty pottery, purses that might have been stolen from Sutton Hoo.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Incan Palace Compound.
After numerous false leads through the jungles of Peru, and an arduous trek along the Amazon, you have arrived, at last, here: at Atagon, the lost city of untold treasure.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, blocks progress towards the Treasure Room.
>(Testing.)
>[1] in
(first opening the startlingly intricate door)
Treasure Room
To your considerable surprise, the treasure room is stocked with art objects from a vast range of eras and geographical locations: beside the expected pre-Columbian gold there are Cycladic figurines, Chinese Tang-dynasty pottery, purses that might have been stolen from Sutton Hoo. If the British Museum developed a nasty expectorant cough, this is what you'd find in its hanky.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Incan Palace Compound.
[Your score has just gone up by one point.]
>[2] out
Incan Palace Compound
After numerous false leads through the jungles of Peru, and an arduous trek along the Amazon, you have arrived, at last, here: at Atagon, the lost city of untold treasure.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Treasure Room.
>[3] in
Treasure Room
To your considerable surprise, the treasure room is stocked with art objects from a vast range of eras and geographical locations: beside the expected pre-Columbian gold there are Cycladic figurines, Chinese Tang-dynasty pottery, purses that might have been stolen from Sutton Hoo.
A door carved all over with figures of ancient gods, and protected by an assortment of gears and latches, stands open towards the Incan Palace Compound.