-
Notifications
You must be signed in to change notification settings - Fork 1
Handy Dandy Guide to Items
-
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 item:
location_variable.new_object("item name")
Example:
sidewalk.new_object("stick") -
Pick a description for your new item:
location_variable.new_object("item name", "item description")
Example:
sidewalk.new_object("stick","a wooden stick") -
Store your new item in a variable:
item_variable = location_variable.new_object("item name", "item description")
Example:
stick = sidewalk.new_object("stick","a wooden stick")
-
Choose what item you want to make an in-game command for:
item_variable
Example:
stick -
Attach the add_phrase command to it:
item_variable**.add_phrase()**
Example:
stick.add_phrase() -
Add the in-game command:
item_variable.add_phrase("in-game command")
Example:
stick.add_phrase("wave stick") -
Add what the game says when the in-game command is used (THERE ARE TWO END PARENTHESES!!!):
item_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)