summary refs log tree commit diff
diff options
context:
space:
mode:
authorgodz4762 <samuelmandelkow@proton.me>2026-08-15 13:36:19 -0500
committergodz4762 <samuelmandelkow@proton.me>2026-08-15 13:36:19 -0500
commitbaae5a8738718a5b102b99d4b87cdfd0767257ae (patch)
tree23a16531fedfb27b76137ad4a500d7ac0340e4d8
Hi bums my rpg is here now too
-rw-r--r--README.md1
-rw-r--r--rpg-super-hell.py294
-rw-r--r--rpg.py411
3 files changed, 706 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..eecd298 --- /dev/null +++ b/README.md
@@ -0,0 +1 @@
YOU NEED TO RUN THIS IN PYTHON IN A TERMINAL TO PLAY
diff --git a/rpg-super-hell.py b/rpg-super-hell.py new file mode 100644 index 0000000..da18c99 --- /dev/null +++ b/rpg-super-hell.py
@@ -0,0 +1,294 @@
1
2# print game name
3
4
5print("====================================")
6print()
7print(" The Organ Braille ")
8print()
9print("====================================")
10
11inventory = []
12
13# ask for player username
14
15name = input("What is your name, Traveler? ")
16
17# welcome them
18
19
20print(f"Welcome to the game, {name}, I wish you the best of luck!")
21
22
23answer = input("Do you wish to proceed further? ")
24
25
26if answer.lower() == "no":
27 print("Well then, off you go!")
28 exit()
29
30
31print("Choose your class!")
32print("1. Knight")
33print("2. Rogue")
34print("3. Mage")
35
36
37valid_class = False
38
39
40while valid_class == False:
41 player_class = input("> ")
42
43 if player_class == "1":
44 print("A mighty knight you are! Move forward with pride!")
45 valid_class = True
46 elif player_class == "2":
47 print("A stealthy rogue, sneak between shadows and cut from behind!")
48 valid_class = True
49 elif player_class == "3":
50 print("A powerful mage, cast spells of fire and ice to batter your opponent!")
51 valid_class = True
52 else:
53 print("That isn't a class!")
54
55if player_class == "1":
56 print("health - 150")
57 player_health = 1
58 max_player_health = 1
59 print("damage - 80")
60 player_damage = 5
61elif player_class == "2":
62 print("health - 80")
63 player_health = 1
64 max_player_health = 1
65 print("damage - 120")
66 player_damage = 12
67elif player_class == "3":
68 print("health - 130")
69 player_health = 1
70 max_player_health = 1
71 print("damage - 90")
72 player_damage = 6
73
74alchemist_shop = False
75
76
77print("You procede along a small path towards a giant cave far in the distance.")
78
79print("The cave was home to an evil dragon, the end goal of your quest is to slay him and save the kingdom!")
80
81print("Will you procede forward to fight a Goblin or detour at the Alchemy shop?")
82
83while alchemist_shop == False:
84 potioninq = input("Goblin or Alchemist? ")
85
86
87 if potioninq.lower() == "alchemist":
88 print("You say hello to the Alchemist and he gives you a potion and a small piece of bread for the road.")
89 inventory.append("Potion")
90 inventory.append("Bread")
91 alchemist_shop = True
92 elif potioninq.lower() == "goblin":
93 print("You procede forward to battle the goblin")
94 alchemist_shop = True
95 else:
96 print("That isn't an option!")
97
98def battle(enemy_name, enemy_health, enemy_damage):
99 global player_health
100 global inventory
101 global max_player_health
102 global player_damage
103 import random
104 print(f"You enter a battle with a {enemy_name}!")
105
106 while player_health > 0 and enemy_health > 0:
107 item_selected = False
108 print("Select the number of the action you would like to do!")
109 print("1. Fight")
110 print("2. Item")
111 print("3. Run")
112 battle_selection = (input("> "))
113
114
115 if battle_selection.lower() in ["1", "fight"]:
116 player_damage = random.randint(
117 player_damage - 15,
118 player_damage + 10
119 )
120 enemy_health = enemy_health - player_damage
121 print(f"You dealt {player_damage} to {enemy_name}")
122 print(f"{enemy_name} has {enemy_health} HP remaining!")
123
124
125 elif battle_selection.lower() in ["2", "item"]:
126 if not inventory:
127 print("Your inventory is empty!")
128 continue
129 else:
130 while item_selected == False:
131 print("Inventory")
132 for item in inventory:
133 print(f"- {item}")
134
135
136 itemselected = input("Use which item? Type exit to not use an item. ")
137 if itemselected.lower() == "potion":
138 if "Potion" in inventory:
139 inventory.remove("Potion")
140 player_health = player_health + 80
141 print("You drank the Alchemists potion. You regained 80 Health.")
142 item_selected = True
143 if player_health > max_player_health:
144 player_health = max_player_health
145 else:
146 print("You do not have that!")
147 elif itemselected.lower() == "bread":
148 if "Bread" in inventory:
149 inventory.remove("Bread")
150 player_health = player_health + 50
151 print("You ate the bread. You regained 50 Health.")
152 item_selected = True
153 if player_health > max_player_health:
154 player_health = max_player_health
155 elif itemselected.lower() == "witch's brew":
156 if "Witch's Brew" in inventory:
157 inventory.remove("Witch's Brew")
158 brewkill = random.randint(1, 2)
159 if brewkill >= 2:
160 player_health = max_player_health
161 print("You are healed fully by the Witch's Brew")
162 itemselected = True
163 elif brewkill <= 1:
164 print("The Witch's Brew eat and burns through your throat.")
165 print("You collapse slowly to the ground.")
166 print("Game over.")
167 exit()
168 elif itemselected.lower() == "exit":
169 itemselected = True
170 break
171 continue
172 elif battle_selection.lower() in ["3", "run"]:
173 print("You can't run, idiot.")
174 player_health = player_health - 15
175 print("You tripped and took 15 damage.")
176 else:
177 print("Not an option!")
178 continue
179
180
181 if enemy_health > 0:
182
183
184
185 attack = random.randint(0, 1)
186 if attack == 0:
187 print("YOU DIED YOU SUCK EZ EZ EZ BUM LALALALALALA")
188 exit()
189
190 elif attack == 1:
191 print("You live to see another turn.")
192
193battle("Goblin", 125, 15)
194
195
196import random
197
198
199player_gold = random.randint(0, 60)
200
201
202print("You won! The goblin falls to the ground defeated.")
203print()
204print()
205print("He points you down the path. Ahead was a small shop.")
206print(f"The goblin gives you {player_gold} gold.")
207print()
208print()
209print()
210print("Down the path was a little shop. You stop inside.")
211print("Spend your gold here!")
212print("What would you like to buy?")
213
214road_shop = False
215
216
217while road_shop == False:
218 print(f"You have {player_gold} to spend!")
219 item_bought = input("Potion 35 Gold, Bread 20 Gold, Witch's Brew 80 Gold. Type exit to leave without buying anything. ")
220
221
222 if item_bought.lower() == "potion":
223 print("You bought a Potion!")
224 inventory.append("Potion")
225 player_gold = player_gold - 35
226 print(f"You have {player_gold} gold left!")
227
228 elif item_bought.lower() == "bread":
229 print("You bought bread!")
230 inventory.append("Bread")
231 player_gold = player_gold - 20
232 print(f"You have {player_gold} gold left!")
233
234 elif item_bought.lower() == "witch's brew":
235 print("You bought a bubbling Witch's brew!")
236 inventory.append("Witch's Brew")
237 player_gold = player_gold - 80
238 print(f"You have {player_gold} gold left!")
239
240 elif item_bought.lower() == "exit":
241 print("You leave the shop after taking a look around.")
242 road_shop = True
243
244 else:
245 print("Not an option!")
246
247
248print("You stumble across a man along the path after you leave the shop.")
249print("He asks if you want to know about the path ahead of you.")
250
251
252manquestion = input("yes or no? ")
253
254
255if manquestion.lower() == "yes":
256 print("The man tells you about a powerful Ogre down the path a little while.")
257 print("You feel as if you will cross paths with that monster.")
258
259
260else:
261 print("You feel an impending sense of doom of the path ahead of you.")
262 print("You don't know how to feel about it.")
263
264
265print("You come across a bridge. There's a seemingly evil presence under it. Will you investigate or not.")
266
267
268bridgelook = input("yes or no ")
269
270if bridgelook.lower() == "yes":
271 print("You find a horrifying looking monster. He tells you to not worry.")
272 print()
273 print("He tells you that he wasn't anything to worry about.")
274 print("The creature asks if you wanted to be friends, and introduces himself as Golem.")
275 print()
276 print("You tell him you will be his friend, and he gives you 200 Gold.")
277 player_gold = player_gold + 200
278
279
280else:
281 print("You cross the bridge carefully. Nothing happens as you cross, and you continue down the path.")
282
283
284print("You felt a sense of unease rise onto your back. You turn and a goblin ambushes you!")
285
286
287battle("Strong Goblin", 300, 40)
288
289
290print("The strong goblin falls beneath your strength. He gives you a permanent health upgrade.")
291
292
293
294
diff --git a/rpg.py b/rpg.py new file mode 100644 index 0000000..d8cbb47 --- /dev/null +++ b/rpg.py
@@ -0,0 +1,411 @@
1
2# print game name
3
4
5print("====================================")
6print()
7print(" The Organ Braille ")
8print()
9print("====================================")
10
11inventory = []
12
13hpup1 = False
14
15# ask for player username
16
17name = input("What is your name, Traveler? ")
18
19# welcome them
20
21
22print(f"Welcome to the game, {name}, I wish you the best of luck!")
23
24
25answer = input("Do you wish to proceed further? ")
26
27
28if answer.lower() == "no":
29 print("Well then, off you go!")
30 exit()
31
32
33print("Choose your class!")
34print("1. Knight")
35print("2. Rogue")
36print("3. Mage")
37
38
39valid_class = False
40
41
42while valid_class == False:
43 player_class_input = input("> ")
44
45 if player_class_input == "1":
46 print("A mighty knight you are! Move forward with pride!")
47 valid_class = True
48 player_class = 1
49 elif player_class_input == "2":
50 print("A stealthy rogue, sneak between shadows and cut from behind!")
51 valid_class = True
52 player_class = 2
53 elif player_class_input == "3":
54 print("A powerful mage, cast spells of fire and ice to batter your opponent!")
55 valid_class = True
56 player_class = 3
57 else:
58 print("That isn't a class!")
59
60if player_class == 1:
61 print("health - 150")
62 player_health = 150
63 max_player_health = 150
64 print("damage - 80")
65 player_damage = 80
66elif player_class == 2:
67 print("health - 80")
68 player_health = 80
69 max_player_health = 80
70 print("damage - 120")
71 player_damage = 120
72elif player_class == 3:
73 print("health - 130")
74 player_health = 130
75 max_player_health = 130
76 print("damage - 90")
77 player_damage = 90
78
79alchemist_shop = False
80
81
82print("You procede along a small path towards a giant cave far in the distance.")
83
84print("The cave was home to an evil dragon, the end goal of your quest is to slay him and save the kingdom!")
85
86print("Will you procede forward to fight a Goblin or detour at the Alchemy shop?")
87
88while alchemist_shop == False:
89 potioninq = input("Goblin or Alchemist? ")
90
91
92 if potioninq.lower() == "alchemist":
93 print("You say hello to the Alchemist and he gives you a potion and a small piece of bread for the road.")
94 inventory.append("Potion")
95 inventory.append("Bread")
96 alchemist_shop = True
97 elif potioninq.lower() == "goblin":
98 print("You procede forward to battle the goblin")
99 alchemist_shop = True
100 else:
101 print("That isn't an option!")
102
103def battle(enemy_name, enemy_health, enemy_damage):
104 global player_health
105 global inventory
106 global max_player_health
107 global player_damage
108 global hpup1
109 import random
110 print(f"You enter a battle with a {enemy_name}!")
111
112 while player_health > 0 and enemy_health > 0:
113 itemselected = False
114 print("Select the number of the action you would like to do!")
115 print("1. Fight")
116 print("2. Item")
117 print("3. Run")
118 battle_selection = (input("> "))
119
120
121 if battle_selection.lower() in ["1", "fight"]:
122 damage = random.randint(
123 player_damage - 25,
124 player_damage + 15
125 )
126 enemy_health = enemy_health - damage
127 print(f"You dealt {damage} to {enemy_name}")
128 print(f"{enemy_name} has {enemy_health} HP remaining!")
129
130
131 elif battle_selection.lower() in ["2", "item"]:
132 if not inventory:
133 print("Your inventory is empty!")
134 continue
135 else:
136 while itemselected == False:
137 print("Inventory")
138 for item in inventory:
139 print(f"- {item}")
140
141
142 itemselected = input("Use which item? Type exit to not use an item. ")
143 if itemselected.lower() == "potion":
144 if "Potion" in inventory:
145 inventory.remove("Potion")
146 if hpup1 == False:
147 player_health = player_health + 80
148 print("You drank the potion. You regained 80 Health.")
149 elif hpup1 == True:
150 player_health = player_health + 130
151 print("You drank the potion. You regained 130 Health.")
152 print(player_health)
153 item_selected = True
154 if player_health > max_player_health:
155 player_health = max_player_health
156 print(player_health)
157 else:
158 print("You do not have that!")
159 elif itemselected.lower() == "bread":
160 if "Bread" in inventory:
161 inventory.remove("Bread")
162 if hpup1 == False:
163 player_health = player_health + 50
164 print("You ate the bread. You regained 50 Health.")
165 elif hpup1 == True:
166 player_health = player_health + 90
167 print("You ate the bread. You regained 90 Health.")
168 item_selected = True
169 if player_health > max_player_health:
170 player_health = max_player_health
171 print(player_health)
172 elif itemselected.lower() == "witch's brew":
173 if "Witch's Brew" in inventory:
174 inventory.remove("Witch's Brew")
175 brewkill = random.randint(1, 10000)
176 if brewkill >= 2:
177 player_health = max_player_health
178 print("You are healed fully by the Witch's Brew")
179 itemselected = True
180 elif brewkill <= 1:
181 print("The Witch's Brew eat and burns through your throat.")
182 print("You collapse slowly to the ground.")
183 print("Game over.")
184 exit()
185 elif itemselected.lower() == "exit":
186 itemselected = True
187 break
188 continue
189 elif battle_selection.lower() in ["3", "run"]:
190 print("You can't run, idiot.")
191 player_health = player_health - 15
192 print("You tripped and took 15 damage.")
193 else:
194 print("Not an option!")
195 continue
196
197
198 if enemy_health > 0:
199
200
201
202 enemy_attack = random.randint(
203 enemy_damage - 5,
204 enemy_damage + 5
205 )
206
207
208 player_health = player_health - enemy_attack
209
210
211 if player_health <= 0:
212 print("You died!")
213 exit()
214
215
216 print(f"{enemy_name} attacks!")
217 print(f"You take {enemy_damage} damage")
218
219
220 print(f"You have {player_health} HP Remaining!")
221
222
223battle("Goblin", 125, 15)
224
225
226import random
227
228
229player_gold = random.randint(150, 250)
230
231
232print("You won! The goblin falls to the ground defeated.")
233print()
234print()
235print("He points you down the path. Ahead was a small shop.")
236print(f"The goblin gives you {player_gold} gold.")
237print()
238print()
239print()
240print("Down the path was a little shop. You stop inside.")
241print("Spend your gold here!")
242print("What would you like to buy?")
243
244def shop():
245 global player_gold
246 road_shop = False
247
248
249 while road_shop == False:
250 print(f"You have {player_gold} to spend!")
251 item_bought = input("Potion 35 Gold, Bread 20 Gold, Witch's Brew 80 Gold. Type exit to leave without buying anything. ")
252
253
254 if item_bought.lower() == "potion":
255 if player_gold >= 35:
256 print("You bought a Potion!")
257 inventory.append("Potion")
258 player_gold = player_gold - 35
259 print(f"You have {player_gold} gold left!")
260 elif player_gold < 35:
261 print("You don't have enough gold...")
262
263 elif item_bought.lower() == "bread":
264 if player_gold >= 20:
265 print("You bought bread!")
266 inventory.append("Bread")
267 player_gold = player_gold - 20
268 print(f"You have {player_gold} gold left!")
269 elif player_gold < 20:
270 print("You don't have enough gold...")
271
272 elif item_bought.lower() == "witch's brew":
273 if player_gold >= 80:
274 print("You bought a bubbling Witch's brew!")
275 inventory.append("Witch's Brew")
276 player_gold = player_gold - 80
277 print(f"You have {player_gold} gold left!")
278 elif player_gold < 80:
279 print("You don't have enough gold...")
280
281 elif item_bought.lower() == "exit":
282 print("You leave the shop after taking a look around.")
283 road_shop = True
284
285 else:
286 print("Not an option!")
287
288
289shop()
290
291
292print("You stumble across a man along the path after you leave the shop.")
293print("He asks if you want to know about the path ahead of you.")
294
295
296manquestion = input("yes or no? ")
297
298
299if manquestion.lower() == "yes":
300 print("The man tells you about a powerful Ogre down the path a little while.")
301 print("You feel as if you will cross paths with that monster.")
302
303
304else:
305 print("You feel an impending sense of doom of the path ahead of you.")
306 print("You don't know how to feel about it.")
307
308
309print("You come across a bridge. There's a seemingly evil presence under it. Will you investigate or not.")
310
311
312bridgelook = input("yes or no ")
313
314if bridgelook.lower() == "yes":
315 print("You find a horrifying looking monster. He tells you to not worry.")
316 print()
317 print("He tells you that he wasn't anything to worry about.")
318 print("The creature asks if you wanted to be friends, and introduces himself as Golem.")
319 print()
320 print("You tell him you will be his friend, and he gives you 200 Gold.")
321 player_gold = player_gold + 200
322
323
324else:
325 print("You cross the bridge carefully. Nothing happens as you cross, and you continue down the path.")
326
327
328print("You felt a sense of unease rise onto your back. You turn and a goblin ambushes you!")
329
330
331battle("Strong Goblin", 300, 40)
332
333
334print("The strong goblin falls beneath your strength. He gives you a permanent health upgrade.")
335
336
337if player_class == 1:
338 print("Your max HP increased to 350")
339 max_player_health = 350
340 player_health = max_player_health
341 print("Your HP was also fully restored!")
342elif player_class == 2:
343 print("Your max HP increased to 180")
344 max_player_health = 180
345 player_health = max_player_health
346 print("Your HP was also fully restored!")
347elif player_class == 3:
348 print("Your max HP increased to 230")
349 max_player_health = 230
350 player_health = max_player_health
351 print("Your HP was also fully restored!")
352
353
354hpup1 = True
355
356
357print("You press on going forawrd.")
358print()
359print()
360print()
361print("You enter a forest. You heard a twig break behind you and you look to see a young girl.")
362
363
364print("Be a monster?")
365print("1. Yes.")
366print("2. No.")
367
368
369brutality = input("> ")
370
371
372if brutality.lower() == "yes":
373 print("You feel stronger. You leave the splatter of blood on the ground.")
374 print("Your fate is sealed.")
375 print()
376 print()
377 print()
378 print("You encounter the dreadful Ogre. Be prepared.")
379 print("He judges you a distasteful stain of this world. Good luck.")
380 battle("Ogre", 1500, 60)
381
382
383elif brutality.lower() == "no":
384 print("You give the girl a little flower.")
385 print("She runs off into the wilderness.")
386
387
388 if manquestion.lower() == "yes":
389 print("You come across the Ogre that the strange man told you about.")
390 print("He thanks you for gifting his friend a flower.")
391 print()
392 elif manquestion.lower() == "no":
393 print("You come across an Ogre")
394 print("He thanks you for gifting his friend a flower.")
395
396 print("Attack the Ogre in fear?")
397 print("Yes.")
398 print("No.")
399 ogrefight = input("> ")
400
401
402 if ogrefight.lower() in ["1", "yes"]:
403 print("You swing at the Ogre. He initates a fight.")
404 battle("Ogre", 850, 60)
405 player_gold = player_gold + random.randint(500, 700)
406 elif ogrefight.lower() in ["2", "no"]:
407 print("You carry on down the path.")
408 print("Good choice.")
409
410
411shop()