repl.it
Python

Look at the title.

fork
loading
Files
  • main.py
main.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
#Don't take a peak if you just want to cheat!
import sys as s
import replit as i
import time as t
import random as r
inventory = []
run = 0

def battle():
  run = 0
  phealth = health
  if Type == "Kooba":
    ehealth = 5
    damage = 2
  elif Type == "Goompa":
    ehealth = 3
    damage = 2
  elif Type == "Boon Boon":
    ehealth = 15
    damage = 3
  elif Type == "Pon Pon":
    ehealth = 10
    damage = 4
  while True:
    print("Press j to jump on the enemy")
    print("Press r to run away")
    action = input(">>> ")
    i.clear()
    if action == "j":
      hit = r.randint(1, 10)
      if hit >= 5:
        print("You jumped on the enemy!")
        ehealth = ehealth - 2
        print()
      else:
        print("You missed!")
        print()
      if ehealth <= 0:
        print("You won!")
        input("Press ENTER to continue")
        i.clear()
        break
      print("Enemy's health:", ehealth)
      print(name + "'s health:", phealth)
      print()
    elif action == "r":
      escape = r.randint(1, 10)
      if escape >= 5:
        print("You ran away!")
        input("Press ENTER to continue")
        i.clear()
        run = 1
        break
      else:
        print("You failed to run away!")
        print()
    mush = r.randint(1, 10)
    attack = r.randint(1, 10)
    if mush <= 3:
      print("You found a random mushroom on the ground...")
      print("Looks safe!")
      print("You eat the screaming and writhing mushroom and gain 3 health!")
      phealth += 3
      print()
      print(name+"'s health:", phealth)
      print()
    if attack >= 5:
      print("The", Type, "attacked you!")
      phealth = phealth - damage
      print()
      if phealth <= 0:
        print()
        print("The", Type, "Defeated you")
        print("GAME OVER!")
        s.exit()
      else:
        print(name + "'s health:", phealth)
        print()
i.clear()
print("Let's begin! How much do you like pizza?")
input(">>> ")
i.clear()
print("Wait, what do you mean by you hate frogs and love salty snails?")
print("I have no idea what went through your mind when you said that...")
print("What is your name?")
name = input(">>> ")
i.clear()
print("Okay, " + name + ", how about we play a little game?")
print("It's called 'how to tame your pizza'")
input("Press ENTER to continue.")
i.clear()
print("'I have come to destroy the Fungus Kingdom!'")
print()
print("Oh no! did you hear that!?")
print("It sounds like that evil turtle named Powser!")
print("We need to go and save them!")
print("Come on!")
input("Press ENTER to continue.")
i.clear()
print("Let's go down to the weapons room in the... wait a minute!")
print("You don't need a weapon!")
print("You have your feet!")
print("Let's test your feet out!")
input("Press ENTER to continue.")
i.clear()
print("Here comes a Goompa! Press j to stomp on his face!")

while True:
  stomp = input(">>> ").lower()
  if stomp == "j":
    print("You stomped on the Goompa.")
    break
  else:
    print("I said press j!")

print("Good job! This was only a tutorial though.")
print("Let's go into the Fungus kingdom and defeat Powser!")
input("Press ENTER to continue.")
i.clear()
print("You encountered a Kooba on your way to the Fungus Kingdom!")
print()
health = 10
Type = "Kooba"
battle()
print("Good job on defeating the Kooba!")
print("By the way, if you die, you have to start over from the beginning.")
print("Wait a second... You can't come back! Haha!")
print("What am I thinking, you can't come back from the dead!")
print("Anyways, let's continue and save the Fungus Kingdom!")
print("Oh wait, what am I thinking!?")
print("Here, let me heal you from that battle.")
health = 10
print("'Your health was reset back to your maximum HP!'")
input("Press ENTER to continue.")
i.clear()
print("Let's continue onwards to the Fungus Kingdom.")
print("We need to go to the Yellow Hills to get there.")
input("Press ENTER to start your journey...")
i.clear()
print("ACT 1, YELLOW HILL ZONE")
print()
print("You encountered a Goompa!")
print()
Type = "Goompa"
battle()
print("Here let me heal you again. However, I won't be doing this forever...")
health = 10
print("'Your health was reset to your maximum HP!'")
print("It looks like you have come to fork in the road!")
print("That splits into two paths....")
print("Not that much of a fork is it?")
print("AHEM!")
print("You can go left or right, which way should we go?")
while True:
  fork = input(">>> ").lower()
  if fork == "left":
    print("Then left we go!")
    direction = 0
    break
  elif fork == "right":
    print("Then right we go!")
    direction = 1
    break
  else:
    print("That's not a choice...")

if direction == 0:
  print("You encountered BOON BOON!")
  Type = "Boon Boon"
else:
  print("You encountered PON PON!")
  Type = "Pon Pon"
battle()
print("Wow! They were strong!")
print("Here, let me heal you one last time. I won't heal you after this though! I'm running out of mushrooms.")
health = 10
print("'Your health was reset back to your maximum HP!'")
print("Let's continue down the road to the next place.")
input("Press ENTER to continue to the next part of your journey.")
i.clear()
print("ACT 2, YELLOW HILL ZONE")
print()
print("You encountred a Goompa!")
print()
Type = "Goompa"
battle()
print("Let's continue!")
print("You encoutered two Koobas!")
print("Thankfully, they like to attack you one at a time.")
print()
Type = "Kooba"
battle()
print("Here comes the second Kooba!")
print()
battle()
print("Good job on surviving them!")
print("Let's move on.")
if direction == 0:
  print("Oh no!")
  print("It looks like Pon Pon wasn't very happy with you killing Boon Boon.")
  Type = "Pon Pon"
else:
  print("Oh no!")
  print("It looks like Boon Boon wasn't very happy with you killing Pon Pon.")
  Type = "Boon Boon"
  print()
print("Let's kill it!")
battle()
print("Good job!")