Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define dverb "travel":
- has form "go down"
- has form "travel down"
- has form "take"
- has form "walk down"
- has form "explore"
- has action:
- if target is path
- if target isOpen
- travel path
- ;
- has failure:
- "You cannot %dverb %target!"
- ;
- has success:
- "You %dverb the %target(path)"
- ;
- ;
- define dverb "travel to":
- has form "go to"
- has form "take path to"
- has form "explore"
- has action:
- if target (has path to curRoom)
- if path (from target to curRoom) isOpen
- travel path (from target to curRoom)
- ;
- has failure:
- "You cannot %dverb %target!"
- ;
- has success:
- "You %dverb the %target(path)"
- ;
- ;
- define actor "player":
- bool isplayer
- is in "center room"
- ;
- define room "room1":
- name "north room"
- has path "south" "room5"
- ;
- define room "room2":
- name "east room"
- has path "west" "room5"
- ;
- define room "room3":
- name "south room"
- has path "north" "room5"
- ;
- define room "room4":
- name "west room"
- has path "east" "room5"
- ;
- define room "room5":
- has path "north" "room1"
- has path "east" "room2"
- has path "south" "room3"
- has path "west" "room4"
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement