Climbing the Tree - Remapping Behaviour
|
Since the player will encounter a tree in the clearing, and since examining the tree will tell the player that the tree looks climbable, it is almost inevitable that the player will try to climb the tree; indeed this may seem an even more obvious way of reaching the top of the tree than typing up. But at the moment, the command climb the tree will result in the game responding, "That is not something you can climb." What we need to do is to modify the tree object so that trying to climb it has the same effect as typing up. There are several ways this could be achieved. Perhaps the simplest is to add the following to the definition of tree:
|
dobjFor(Climb) remapTo(Up)
|
|
|
dobjFor(Climb) remapTo(TravelVia, topOfTree)
|
|
|
dobjFor(Climb) remapTo(Up)
|
Getting Started in TADS 3
[Main]
[Previous] [Next]