|
Often, you might want to enclose all your ‘look’ handlers in one if statement, but still support
just "look" all by itself.
(if (Said('look>'))
(if (Said('/wall'))Print("The wall is covered in paint."))
(if (Said('/floor'))Print("The floor is covered in dust."))
// this will handle just "look" by itself
(if (Said('[/!*]'))Print("You are in a room with a floor and a wall."))
// this will handle "look anyword"
(if (Said('/*'))Print("You don't see anything interesting about it."))
)
If you wanted to handle ‘look around’ just like look, you could do:
(if (Said('look>'))
(if (Said('/wall'))Print("The wall is covered in paint."))
(if (Said('/floor'))Print("The floor is covered in dust."))
// this will handle just "look" by itself, and also "look around"
(if (Said('[/around]'))Print("You are in a room with a floor and a wall."))
(if (Said('/*'))Print("You don't see anything interesting about it."))
)
Note that more specific Said clauses should always come before more general ones.
|