-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemple1.py
88 lines (85 loc) · 3.63 KB
/
temple1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import time
import importantStuff
player = importantStuff.player
characterInventory = importantStuff.characterInventory
stick = importantStuff.stick
mName = importantStuff.mName
runOrFight = importantStuff.runOrFight
print_delay = importantStuff.print_delay
clear_screen = importantStuff.clear_screen
name = importantStuff.name
def live_with_monster():
global characterInventory
global stick
global runOrFight
global mName
global name
print("You decide to befriend him.")
time.sleep(1)
print("He befriends you!")
time.sleep(1)
mName = input("What do you name him?")
time.sleep(1)
print(name + " has befriended " + mName + "!")
time.sleep(1)
print("After a while he gives you a stick.")
time.sleep(1)
characterInventory.append("Stick")
print("You don't know why though...")
print("The monster points towards Maze Forest.")
print("You both walk into the forest.")
time.sleep(5)
importantStuff.clear_screen()
time.sleep(1)
importantStuff.clear_screen()
time.sleep(5)
print("MAZE FOREST")
print_delay("Here is your inventory.", 1)
print(characterInventory)
time.sleep(1)
print_delay("As you walk through this forest, you realize just how big it is.", 1.5)
print_delay("You hear sounds that sound like talking.", 1)
print_delay("You and " + mName + " hide behind a bush.", 1)
print_delay("You look behind the bush, and see a horde of garblins.", 1.5)
print("They are half gargoyle, half goblin creatures.")
time.sleep(1)
print_delay("And they're usually defending something...", 1.2)
print_delay("Do you want to fight the garblins, or run away?", 1.2)
runOrFight = input("run (r) or fight (f)")
if runOrFight.lower()[:1:] == "r":
print("You and the monster barely outrun the garblins.")
tired()
else:
print("You and the monster jump out of the bush and succesfully defend against the garblins.")
print("You walk a bit further in the forest, and come across a huge temple like structure.")
time.sleep(5)
clear_screen()
print("THE TEMPLE OF THE GARBLINS")
print("Temple")
time.sleep(1)
print_delay("Here is your inventory.", 1)
print_delay(characterInventory, 4)
print("As you walk through the temple, you see how old it is.")
print("You find a first aid kit on the ground with a note on it.")
print("The note reads,")
print("To whoever finds this, good luck.")
print("You pick it up.")
print("You got a first aid kit.")
importantStuff.add_inventory("FirstAidKit", 1)
print("As you're walking through the temple, you see a group of garblins that are patrolling the temple.")
print("Do you want to take a different route or keep going on the same route?")
different_route = input("take a different route(t) or keep going (k)")
if different_route.lower()[:1:] == "t":
print_delay("", 0)
elif different_route.lower()[:1:] == "k":
print("you keep hearing the sounds of garblins.")
print("You really want to beat them up")
t = input("Do you keep your temper?")
if t.lower()[:1:] == "y":
print("You keep your cool, and you eventually find your way out of the forest.")
print_delay("However, you notice that your shin is badly cut, and is starting to hurt.", 2)
h = input("Do you use the first aid kit?")
if h.lower()[:1:] == "y":
print("You successfully clean the wound, and it heals")
# Temporarily ending the function
return