-
Notifications
You must be signed in to change notification settings - Fork 1
Handy Dandy Quick Reference Guide to Everything
###### location_variable = game_variable.new_location("Name of Location","Description of Location")
Example:
sidewalk = game.new_location("Sidewalk","You are on a paved sidewalk.")
###### connection_variable = game_variable.new_connection("Name of Connection", from_location_variable, to_location_variable, DIRECTION, REVERSE_DIRECTION) ###### connection_variable = game_variable.new_connection("Name of Connection", from_location_variable, to_location_variable, [DIRECTION1, DIRECTION2], [REVERSE_DIRECTION1, REVERSE_DIRECTION2])
Examples:
front_door = game.new_connection("Front Door", sidewalk, vestibule, IN, OUT)
front_door = game.new_connection("Front Door", sidewalk, vestibule, [IN, EAST], [OUT, WEST])
###### player_variable = game_variable.new_player(location_variable)
Example:
player = game.new_player(sidewalk)
###### item_variable = location_variable.new_object("item name","item description")
Example:
key = sidewalk.new_obejct("key","a small silver key")
###### location_variable.make_requirement(item_variable)
###### connection_variable.make_requirement(item_variable)
Examples:
office.make_requirement(key)
office_door.make_requirement(key)
###### item_variable.add_phrase("command", Say("What the game says after you use the game command"))
Example:
key.add_phrase("rub key", Say("This is not a magic lamp."))