-
Notifications
You must be signed in to change notification settings - Fork 1
Handy Dandy Guide to Actors
-
Use the Actor command:
Actor()
Example:
Actor() -
Insert the name of your new character:
Actor("name of character")
Example:
Actor("angry elf") -
Store your new character in a variable: actor_variable = Actor("name of character")
Example:
angry_elf = Actor("angry elf")
-
Type in the actor variable: actor_variable
Example:
angry_elf -
Attach the set_location command to it:
actor_variable**.set_location()**
Example:
angry_elf.set_location() -
Add the location_variable of the starting location:
actor_variable.set_location(location_variable)
Example:
angry_elf.set_location(playground)
-
Choose what actor variable you want to attach a special command to:
actor_variable
Example:
angry_elf -
Attach the add_phrase command to it: actor_variable**.add_phrase()**
Example:
angry_elf.add_phrase() -
Add the in-game command as the first piece of info needed by the add_phrase command:
actor_variable.add_phrase("in-game command")
Example:
angry_elf.add_phrase("chat") -
Add what the game says when the in-game command is used (THERE ARE TWO END PARENTHESES!!!):
actor_variable.add_phrase("in-game command", Say("What the game will say."))
Example:
angry_elf.add_phrase("chat", Say("The angry elf glares at you as you attempt to start a conversation."))
-
Use the game variable:
game_variable
Example:
game -
Add the add_actor command to it:
game_variable**.add_actor()**
Example:
game.add_actor() -
Add the actor variable as the actor to be added to the game: game_variable.add_actor(actor_variable)
Example:
game.add_actor(angry_elf)