-
Notifications
You must be signed in to change notification settings - Fork 1
Handy Dandy Guide to Items
object_variable = location_variable.new_object("Object Name","Object description")
Example:
key = sidewalk.new_obejct("key","a small silver key")
location_variable.make_required(object_variable)
connection_variable.make_required(object_variable)
Examples:
office.make_required(key)
office_door.make_required(key)
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."))
-
Choose your location variable for where you want the item to first appear:
location_variable
Example: sidewalk -
Attach the new_object command to it:
location_variable . new_object()
Example: sidewalk.new_object() -
Pick a name for your new object:
location_variable.new_object("object name")
Example: sidewalk.new_object("stick") -
Pick a description for your new object:
location_variable.new_object("object name", "Object Description")
Example: sidewalk.new_object("stick","a wooden stick") -
Store your new object in a variable:
object_variable = location_variable.new_object("object name", "object description")
Example: stick = sidewalk.new_object("stick","a wooden stick")
-
Choose what object you want to make an in-game command for:
object_variable
Example: stick -
Attach the add_phrase command to it:
object_variable . add_phrase()
Example: stick.add_phrase() -
Add the in-game command:
object_variable.add_phrase("in-game command")
Example: stick.add_phrase("wave stick") -
Add what the game says when the in-game command is used:
object_variable.add_phrase("in-game command" ,Say("What the game will say."))
Example: stick.add_phrase("wave stick",Say("You feel like a powerful wizard!"))
-
Choose what you want a requirement for:
location_or_connection_variable
Example: office_door -
Add the make_requirement command:
location_or_connection_variable . make_requirement()
Example: office_door.make_requirement -
Add the item that is required for your location or connection
location_or_connection_variable. make_requirement(item_variable)
Example: office_door.make_requirement(key)