Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,29 @@ kitchen.link_room(dining_hall, "south")

dining_hall.link_room(kitchen, "north")

---
Add Enemies by adding the following code to main.py:
name = Enemy("Name", "description of character.")
name.set_conversation("What you want the character to say!")
dave.set_weakness("item that will be the enemy's weakness")
room_where_enemy_should_be.set_character(name)

Add Friends by adding the following code to main.py:
name = Friend("Name", "description of character.")
name.set_conversation("What you want the character to say!")
room_where_enemy_should_be.set_character(name)
#Note, friends don't fight friends so they don't have any weaknesses.

Example:

dave = Enemy("Dave", "a smelly, hungry zombie.")
dave.set_conversation("Brrlgrh... rgrhl... braaains...")
dave.set_weakness("brains")
dining_hall.set_character(dave)

catrina = Friend("Catrina", "a tall friendly skeleton.")
catrina.set_conversation("Why hello there, friend!")
ballroom.set_character(catrina)


Move through the house here: https://trinket.io/python/c0bf3c7c32