A new CRPG in text!
[python]import random
import time
HP = 0
GOLD = 0
MAGIC = 0
STEAL = 0
AREA = 0
SHEILD = 0
KILLS = 0
EHP = 0
ROPE = 0
POTION = 0
W1 = ['Hobgoblin', 'Spider', 'Bat', 'Nothing', 'Nothing']
W2 = []
W3 = []
ST = ['Wood Sword', 'Iron Sword', 'Temp Sword', 'Wood Sword', 'Iron Sword', 'Temp Sword', 'Wood Sword', 'Iron Sword', 'Temp Sword', 'Silver Sword', 'Caught', 'Caught', 'Caught', 'Caught' 'Caught', 'Caught', 'Caught', 'Caught' 'Caught', 'Caught', 'Caught', 'Caught']
STI = ['Caught', 'Caught', 'Caught', '50', '50', '50', '100', 'SHEILD', 'POTION', '']
EXP = 0
DIV = 10
LVL = EXP/DIV
EHM = [0, 0, 1]
SBAR = 0
GBAR = 0
CBAR = 0
print('######################################################################################################################################################################')
print('############################################################################PYCOM PRESENTS############################################################################')
print('######################################################################################################################################################################')
print('################################################## _________ ____ ##################################################')
print('################################################## / \ / / ##################################################')
print('################################################## | ______\ / / ##################################################')
print('################################################## | / | | ##################################################')
print('################################################## | |____ | | ##################################################')
print('################################################## | \ | | ___ ##################################################')
print('################################################## | _____\ | | |___| ##################################################')
print('################################################## | | | | _______ ______ ___ _________ ##################################################')
print('################################################## | | | | / _ \ / \ | | / __ | | ##################################################')
print('################################################## | | | | | / \ | | /\__| | | | / \ | ##################################################')
print('################################################## | | | | | \_/ | | | | | | \__/ | ##################################################')
print('################################################## |____| |____| \_______/ |___| |___| \_______|_| ##################################################')
print('################################################## ##################################################')
print('######################################################################################################################################################################')
print('############################################################################JANUARY---2018############################################################################')
print('######################################################################################################################################################################')
print('An indepentantly developed, treasure hunting game!')
input('Hit Enter')
for x in range(0, 50):
print('')
while 0 == 0:
print('Choose your race:')
print('1.) Human')
print(' Strong and mildly rich.')
print('2.) Elf')
print(' Slightly weak, they don\'t need or want gold.')
print('3.) Goblin')
print(' Very small and weak, they\'ve got lots of gold though!')
print('4.) Neko')
print(' A humanoid cat. It is strong, and it has a lot of gold.')
password = input(':')
if password == '1':
HP = 100
GOLD = 100
RACE = 'HUMAN'
break
if password == '2':
HP = 75
GOLD = 50
RACE = 'ELF'
break
if password == '3':
HP = 50
GOLD = 200
RACE = 'GOBLIN'
break
if password == '4':
HP = 100
GOLD = 250
RACE = 'NEKO'
break
while 0 == 0:
print('Choose your class:')
print('1.) Fighter')
print(' Extra attack power!')
print('2.) Mage')
print(' A wizard, but less cool!')
print('3.) Rogue')
print(' A fighter/theif thing!')
print('4.) Stanlee')
print(' A mage/rogue thing! Best used as Neko Stanlee')
password = input(':')
if password == '1':
ATK = 10
CLASS = 'FIGHTER'
HM = [0, 1, 1]
break
if password == '2':
ATK = 3
CLASS = 'MAGE'
HM = [0, 0, 1]
break
if password == '3':
ATK = 5
CLASS = 'ROGUE'
HM = [0, 0, 1, 2]
STEAL = 1
break
if password == '4':
ATK = 7
CLASS = 'STANLEE'
HM = [0, 1]
STEAL = 1
MAGIC = 1
break
NAME = input('What is your name?')
print(NAME)
print(RACE)
print(CLASS)
print('HP', HP)
print('GOLD', GOLD)
print('ATK', ATK)
INV = ['Nothing', 'Nothing', 'Nothing', 'Nothing', 'Nothing']
W = ['Nothing']
EXP = 0
while 0 == 0:
while AREA == 0:
if EXP > 5 and EXP < 10:
LVL = 1
if EXP > 10 and EXP < 15:
LVL = 2
if EXP > 15 and EXP < 20:
LVL = 3
if EXP > 25 and EXP < 30:
LVL = 4
if EXP > 30 and EXP < 35:
LVL = 5
if EXP > 35 and EXP < 40:
LVL = 6
if EXP > 45 and EXP < 50:
LVL = 7
if EXP > 55 and EXP < 60:
LVL = 8
if EXP > 65 and EXP < 70:
LVL = 9
if EXP > 70:
LVL = 10
print('SURFACE')
print('You can:')
print('1.) Buy Weapons')
print('2.) Sell Weapons')
print('3.) Buy Items')
print('4.) Sell Items')
print('5.) Heal in the Cleric Shop')
print('6.) Enter Dungeon')
print('7.) Treasure Shop')
print('s.) Stats')
print('i.) Inventory')
password = input(':')
if password == '7':
print('You enter the Treasury Shop...')
time.sleep(3)
for x in range(0, 100):
print('')
while 0 == 0:
print('Silver Bars', SBAR)
print('Gold Bars', GBAR)
print('Crystal Bars', CBAR)
password = input('1.) Sell All\n2.) EXIT\n:')
if password == '1':
print(SBAR*25, 'Silver Bar Total Price')
print(GBAR*50, 'Gold Bar Total Price')
print(CBAR*100, 'Silver Bar Total Price')
GOLD = GOLD +SBAR*25+GBAR*50+CBAR*100
print('New GOLD amount:', GOLD)
SBAR = 0
GBAR = 0
CBAR = 0
if password == '2':
break
if password == 'I' or password == 'i':
print('Inventory')
print('POTION', POTION)
print('SUPER POTION', ROPE)
print('SHEILD', SHEILD)
if password == 'S' or password == 's':
print(NAME)
print(RACE)
print(CLASS)
print('HP', HP)
print('GOLD', GOLD)
print('ATK', ATK)
print(W[0])
print('SHEILD', SHEILD)
print('KILLS', KILLS)
print('LVL', LVL)
input('Hit Enter')
for x in range(0, 100):
print('')
if password == '5':
while 0 == 0:
print('What package do you want?')
print('1.) Full HP Heal 100 G')
print('2.) Half HP Heal 50 G')
print('3.) EXIT')
A = input(':')
if A == '1' and GOLD >= 100:
if RACE == 'HUMAN' or RACE == 'NEKO':
HP = 100
if RACE == 'ELF':
HP = 75
if RACE == 'GOBLIN':
HP = 50
GOLD = GOLD -100
if A == '2' and GOLD >= 50:
if RACE == 'HUMAN' or RACE == 'NEKO':
HP = HP +50
if RACE == 'ELF':
HP = HP +35
if RACE == 'GOBLIN':
HP = HP +25
GOLD = GOLD -50
print('Healed to', HP, 'HP')
if A == '3':
break
if password == '6':
print('You enter the first level of the dungeon...')
time.sleep(3)
AREA = AREA +1
if password == '4':
print('You enter the general store...')
time.sleep(3)
while 0 == 0:
print('What do we have here?')
print('(Automatically sells only one.')
print('1.) POTIONS 20 G EACH')
print('2.) SUPER POTIONS 50 G EACH')
print('3.) SHEILD 45 G EACH')
print('4.) EXIT')
A = input(':')
if A == '1' and POTION != 0:
GOLD = GOLD +20
POTION = POTION -1
if A == '2' and ROPE != 0:
GOLD = GOLD +50
ROPE = ROPE -1
if A == '3' and SHEILD != 0:
GOLD = GOLD +45
SHEILD = SHEILD -1
if A == '4':
break
if password == '3':
print('You enter the general store...')
time.sleep(3)
while 0 == 0:
print('Aye. Whaddya need? Potion? Sheild? We got it!')
print('1.) Potion 25 G')
print(' Recovers 10 HP')
print('2.) Sheild 50 G')
print(' Can be used to absorb one hit, thus breaking it.')
print('3.) Super Potion 60 G')
print(' Recovers 50 HP')
print('4.) EXIT')
if STEAL == 1:
print('5.) Steal')
A = input(':')
if A == '1' and GOLD >= 25:
print('Bought a potion.')
POTION = POTION +1
GOLD = GOLD -25
if A == '2' and GOLD >= 50:
print('Bought a sheild.')
SHEILD = SHEILD +1
GOLD = GOLD -50
if A == '3' and GOLD >= 60:
print('Bought a Super Potion.')
ROPE = ROPE +1
GOLD = GOLD -60
if A == '4':
break
if A == '5' and STEAL == 1:
random.shuffle(STI)
time.sleep(3)
if STI[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage!')
HP = HP -25
break
if STI[0] == '50':
print('Got 50 G!')
GOLD = GOLD +50
if STI[0] == '100':
print('Got 100 G!')
GOLD = GOLD +100
if STI[0] == 'SHEILD':
print('Got a Sheild!')
SHEILD = SHEILD +1
if STI[0] == 'POTION':
print('Got a Potion!')
POTION = POTION +1
else:
print('Got a Super Potion!')
ROPE = ROPE +1
if password == '2' and W[0] != 'Nothing':
print('You enter the weapons shop...')
time.sleep(3)
for x in range(0, 100):
print('')
print('Do you want to sell your current weapon?')
A = input('Y/N?\n:')
if A == 'Y' or A == 'y':
if W[0] == 'WSWORD':
print('I\'ll give ya 10 G!')
input('Hit Enter')
GOLD = GOLD+20
del W[0]
W.append('Nothing')
ATK = ATK -10
if W[0] == 'ISWORD':
print('Hm...Ah! I\'ll give ya 50 G!')
input('Hit Enter')
GOLD = GOLD+70
del W[0]
W.append('Nothing')
ATK = ATK -25
if W[0] == 'TISWORD':
print('Hm...Wow...I\'ll give ya 90 G!')
input('Hit Enter')
GOLD = GOLD+120
del W[0]
W.append('Nothing')
ATK = ATK-50
if W[0] == 'SSWORD':
print('My God! How did you get one of these? I\'ll pay full price, 500 G!')
input('Hit Enter')
GOLD = GOLD +500
del W[0]
W.append('Nothing')
ATK = ATK -100
if W[0] == 'CSWORD':
print('I don\'t have enough money to buy this!')
if A == 'N' or A == 'n':
print('...Aye.')
if password == '1':
print('You enter the weapons shop...')
time.sleep(3)
for x in range(0, 50):
print('')
while 0 == 0:
print('Whaddya want?')
print('1.) Wood Sword 50 G')
print(' ATK +10')
print('2.) Iron Sword 100 G')
print(' ATK +25')
print('3.) Tempered Iron Sword 200 G')
print(' ATK +50')
print('4.) Silver Sword 500 G')
print(' ATK +100')
print('5.) EXIT')
if STEAL == 1:
print('6.) Steal')
if LVL >= 3:
print('7.) Crystal Sword 1000 G')
print(' ATK +500')
A = input(':')
if A == '1' and GOLD >= 50 and W[0] == 'Nothing':#AAAAA FROM PASS
print('You bought a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
GOLD = GOLD -50
if A == '2' and GOLD >= 100 and W[0] == 'Nothing':
print('You bought an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
GOLD = GOLD -100
if A == '3' and GOLD >= 200 and W[0] == 'Nothing':
print('You bought a Tempered Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
GOLD = GOLD -200
if A == '4' and GOLD >= 500 and W[0] == 'Nothing':
print('You bought a Silver Sword')
W.append('SSWORD')
del W[0]
ATK = ATK +100
GOLD = GOLD-500
if A == '5':
break
if A == '6' and STEAL == 1 and W[0] == 'Nothing':
print('Stealing a random weapon...')
time.sleep(3)
random.shuffle(ST)
if ST[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage')
HP = HP -25
break
if ST[0] == 'Wood Sword':
print('OK...You got a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
if ST[0] == 'Iron Sword':
print('Nice...You got an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
if ST[0] == 'Temp Sword':
print('Wow! You got a Tempered Iron Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
if ST[0] == 'Silver Sword':
print('Wow! You got a Silver Sword, you\'re rich if you sell it!')
W.append('TISWORD')
del W[0]
ATK = ATK +100
if HP < 1:
print('You Are Dead!')
if A == '7' and GOLD >= 1000 and W[0] == 'Nothing' and LVL >= 3:
print('You bought a Crystal Sword')
W.append('CSWORD')
del W[0]
ATK = ATK+500
GOLD = GOLD -1000
while AREA == 1:#DUNGEON LVL1
ATK = ATK +LVL
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if KILLS >= 3:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
print('You enter the second level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 20
EHM = [0, 0, 1]
print('Hobgoblin approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -5
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 15 Damage!')
HP = HP -15
else:
print('Hobgoblin missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +3')
EXP = EXP +3
KILLS = KILLS +1
break
if W1[0] == 'Spider':
print('Spider approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0 and SHEILD == 0:
print('You took 15 Damage!')
HP = HP -15
if EHM[0] == 0 and SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('Spider missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +2')
EXP = EXP +2
KILLS = KILLS +1
break
if W1[0] == 'Bat':
print('Bat approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 5 Damage!')
HP = HP -5
else:
print('Bat missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +1')
EXP = EXP +1
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTIONS(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 2:
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if W1[0] == 'Nothing' and KILLS < 6:
print('You found a chest!')
input('Hit Enter To Open')
LOOT = ['50', '50', '50', '100', '100', 'Silver Bar', 'Gold Bar', 'Crystal Bar', 'Nothing', 'Nothing']
random.shuffle(LOOT)
if LOOT[0] == '50':
print('You got 50 G!')
GOLD = GOLD+50
if LOOT[0] == '100':
print('You got 100 G!')
GOLD = GOLD+100
if LOOT[0] == 'Silver Bar':
print('Wow! A Silver Bar!')
SBAR = SBAR +1
if LOOT[0] == 'Gold Bar':
print('Whoa!! A Gold Bar!')
GBAR = GBAR +1
if LOOT[0] == 'Crystal Bar':
print('You\'re rich! A Crystal Bar!')
CBAR = CBAR +1
if W1[0] == 'Nothing' and KILLS >= 6:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 80
EHM = [0, 1]
print('Orc approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 20 Damage!')
HP = HP -20
else:
print('Orc missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +7')
EXP = EXP +7
KILLS = KILLS+1
break
if W1[0] == 'Spider':
EHM = [0, 1]
EHP = 80
print('Skeleton approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'NEKO':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD < 1:
print('You took 30 Damage!')
HP = HP -30
else:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD-1
else:
print('Skeleton missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +6')
EXP = EXP +6
KILLS = KILLS +1
break
if W1[0] == 'Bat':
EHM = [0, 0, 1]
EHP = 70
print('Rat approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 10 Damage!')
HP = HP -10
else:
print('Rat missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +5')
EXP = EXP +5
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTION(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 3:
print('You enter the third level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if W1[0] == 'Nothing' and KILLS < 10:
print('You found a chest!')
input('Hit Enter To Open')
LOOT = ['100', '100', '100', '50', '50', '50', '100', '100', 'Silver Bar', 'Gold Bar', 'Crystal Bar', 'Nothing', 'Nothing']
random.shuffle(LOOT)
if LOOT[0] == '50':
print('You got 50 G!')
GOLD = GOLD+50
if LOOT[0] == '100':
print('You got 100 G!')
GOLD = GOLD+100
if LOOT[0] == 'Silver Bar':
print('Wow! A Silver Bar!')
SBAR = SBAR +1
if LOOT[0] == 'Gold Bar':
print('Whoa!! A Gold Bar!')
GBAR = GBAR +1
if LOOT[0] == 'Crystal Bar':
print('You\'re rich! A Crystal Bar!')
CBAR = CBAR +1
if W1[0] == 'Nothing' and KILLS >= 10:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
print('You enter the third level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 80
EHM = [0, 1]
print('Slime approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 50 Damage!')
HP = HP -50
else:
print('Slime missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +10')
EXP = EXP +10
KILLS = KILLS +1
break
if W1[0] == 'Spider':
EHM = [0, 1]
EHP = 90
print('Ghoul approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD < 1:
print('You took 45 Damage!')
HP = HP -45
else:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('Ghoul missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +8')
EXP = EXP +8
KILLS = KILLS +1
break
if W1[0] == 'Bat':
EHM = [0, 0, 1]
EHP = 100
print('Ogre approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
print('You took 50 Damage!')
HP = HP -50
else:
print('Ogre missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +7')
EXP = EXP +7
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTION(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 3:
while 0 == 0:
print('This dungeon level appears to be a rest place...')
print('You can:')
print('1.) Heal in the Hot Spring')
print('2.) Sell Items to the Wandering Merchant')
print('3.) Sell Weapons to the Wandering Merchant')
print('4.) Buy Weapons from the Wandering Merchant')
print('5.) Proceed to the next level...')
print('6.) Buy Sheilds')
password = input(':')
if password == '1':
print('HP Set to 100')
HP = 100
if password == '2':
while 0 == 0:
print('What do we have here?')
print('(Automatically sells only one.')
print('1.) POTIONS 20 G EACH')
print('2.) SUPER POTIONS 50 G EACH')
print('3.) SHEILDS 45 G EACH')
print('4.) EXIT')
A = input(':')
if A == '1' and POTION != 0:
GOLD = GOLD +20
POTION = POTION -1
if A == '2' and ROPE != 0:
GOLD = GOLD +50
ROPE = ROPE -1
if A == '3' and SHEILD != 0:
GOLD = GOLD +45
SHEILD = SHEILD -1
if password == '3':
print('Do you want to sell your current weapon?')
A = input('Y/N?\n:')
if A == 'Y' or A == 'y':
if W[0] == 'WSWORD':
print('I\'ll give ya 10 G!')
input('Hit Enter')
GOLD = GOLD+20
del W[0]
W.append('Nothing')
ATK = ATK -10
if W[0] == 'ISWORD':
print('Hm...Ah! I\'ll give ya 50 G!')
input('Hit Enter')
GOLD = GOLD+70
del W[0]
W.append('Nothing')
ATK = ATK -25
if W[0] == 'TISWORD':
print('Hm...Wow...I\'ll give ya 90 G!')
input('Hit Enter')
GOLD = GOLD+120
del W[0]
W.append('Nothing')
ATK = ATK-50
if W[0] == 'SSWORD':
print('My God! How did you get one of these? I\'ll pay full price, 500 G!')
input('Hit Enter')
GOLD = GOLD +500
del W[0]
W.append('Nothing')
ATK = ATK -100
if W[0] == 'CSWORD':
print('You can\'t sell this to me!')
print('Even ''I'' don\'t have enough to buy it!')
if A == 'N' or A == 'n':
print('...Aye.')
if password == '4':
while 0 == 0:
print('Whoa! You made it this far?\nWhatta ya need?')
print('1.) Wood Sword 50 G')
print(' ATK +10')
print('2.) Iron Sword 100 G')
print(' ATK +25')
print('3.) Tempered Iron Sword 200 G')
print(' ATK +50')
print('4.) Silver Sword 500 G')
print(' ATK +100')
if STEAL == 1:
print('6.) Steal')
print('5.) EXIT')
if LVL >= 3:
print('7.) Crystal Sword 10,000 G')
print(' ATK +500')
A = input(':')
if A == '1' and GOLD >= 50 and W[0] == 'Nothing':#AAAAA FROM PASS
print('You bought a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
GOLD = GOLD -50
if A == '2' and GOLD >= 100 and W[0] == 'Nothing':
print('You bought an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
GOLD = GOLD -100
if A == '3' and GOLD >= 200 and W[0] == 'Nothing':
print('You bought a Tempered Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
GOLD = GOLD -200
if A == '4' and GOLD >= 500 and W[0] == 'Nothing':
print('You bought a Silver Sword')
W.append('SSWORD')
del W[0]
ATK = ATK +100
GOLD = GOLD-500
if A == '5':
break
if A == '6' and STEAL == 1 and W[0] == 'Nothing':
print('Stealing a random weapon...')
time.sleep(3)
random.shuffle(ST)
if ST[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage')
HP = HP -25
break
if ST[0] == 'Wood Sword':
print('OK...You got a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
if ST[0] == 'Iron Sword':
print('Nice...You got an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
if ST[0] == 'Temp Sword':
print('Wow! You got a Tempered Iron Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
if ST[0] == 'Silver Sword':
print('Wow! You got a Silver Sword, you\'re rich if you sell it!')
W.append('TISWORD')
del W[0]
ATK = ATK +100
if HP < 1:
print('You Are Dead!')
if A == '7' and GOLD >= 10000 and W[0] == 'Nothing':
print('You bought a Crystal Sword')
W.append('CSWORD')
del W[0]
ATK = ATK+500
GOLD = GOLD -10000
if A == '5':
print('You slowly walk down the staircase...')
time.sleep(3)
print('You reach the bottom of the stairs.')
print('You can see the Sacred Blade told of in legend.')
while 0 == 0:
password = input('Do you take it?\nY/N\n:')
if password == 'Y' or password == 'y':
print('You proceed to the sword\'s pedestal...')
time.sleep(2)
print('Legend says that a great hero sealed away the Dark Wizard with that sword.')
time.sleep(5)
print('You pull the rusted sword from it\'s pedastal...')
time.sleep(1)
SACRED = SACRED +1
print('You keep the sword in your pack..for now.')
time.sleep(2)
print('Suddenly, the earth begins to rumble...')
time.sleep(3)
for x in range(0, 100):
print('')
AREA = AREA +1
break
if A == '6':
while 0 == 0:
print('1.) Buy Sheild 50 G')
print('2.) EXIT')
password = input(':')
if password == '1' and GOLD >= 50:
print('Got a sheild.')
GOLD = GOLD -50
SHEILD = SHEILD +1
if password == '2':
break
while AREA == 4:
print('Dark Wizard')
print('75% Hit rate')
print('300 HP')
EHP = 300
EHM = [0, 1, 1, 1]
while 0 == 0:
print('1.) Attack')
print('HP', HP)
print('ENEMY HP', EHP)
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('2.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
break
if B == '2' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You used two sheilds! They broke...')
SHEILD = SHEILD -2
print('You took 75 Damage!')
HP = HP -75
else:
print('Dark Wizard missed!')
if HP < 1:
print('You are dead!')
AREA = 0
print('However you get to restart at the surface.')
print('Without any of your items.')
print('But you get your weapon.')
SBAR = 0
GBAR = 0
CBAR = 0
POTION = 0
ROPE = 0
SHEILD = 0
time.sleep(5)
for x in range(0, 100):
print('')
break
if EHP < 1:
print('You won!')
print('EXP +100')
EXP = EXP +100
KILLS = ('Killed the Dark Wizard!')
time.sleep(3)
print('Credits!')
time.sleep(3)
for x in range(0, 100):
print('')
print('##########CREDITS##########')
time.sleep(2)
print('# -PROGRAMMED BY- #')
time.sleep(2)
print('# CARTER STUTZMAN #')
time.sleep(2)
print('# -FOR- #')
time.sleep(2)
print('# PROGRAMMING #')
time.sleep(2)
print('# EDUCATION #')
time.sleep(2)
print('#
[python]import random
import time
HP = 0
GOLD = 0
MAGIC = 0
STEAL = 0
AREA = 0
SHEILD = 0
KILLS = 0
EHP = 0
ROPE = 0
POTION = 0
W1 = ['Hobgoblin', 'Spider', 'Bat', 'Nothing', 'Nothing']
W2 = []
W3 = []
ST = ['Wood Sword', 'Iron Sword', 'Temp Sword', 'Wood Sword', 'Iron Sword', 'Temp Sword', 'Wood Sword', 'Iron Sword', 'Temp Sword', 'Silver Sword', 'Caught', 'Caught', 'Caught', 'Caught' 'Caught', 'Caught', 'Caught', 'Caught' 'Caught', 'Caught', 'Caught', 'Caught']
STI = ['Caught', 'Caught', 'Caught', '50', '50', '50', '100', 'SHEILD', 'POTION', '']
EXP = 0
DIV = 10
LVL = EXP/DIV
EHM = [0, 0, 1]
SBAR = 0
GBAR = 0
CBAR = 0
print('######################################################################################################################################################################')
print('############################################################################PYCOM PRESENTS############################################################################')
print('######################################################################################################################################################################')
print('################################################## _________ ____ ##################################################')
print('################################################## / \ / / ##################################################')
print('################################################## | ______\ / / ##################################################')
print('################################################## | / | | ##################################################')
print('################################################## | |____ | | ##################################################')
print('################################################## | \ | | ___ ##################################################')
print('################################################## | _____\ | | |___| ##################################################')
print('################################################## | | | | _______ ______ ___ _________ ##################################################')
print('################################################## | | | | / _ \ / \ | | / __ | | ##################################################')
print('################################################## | | | | | / \ | | /\__| | | | / \ | ##################################################')
print('################################################## | | | | | \_/ | | | | | | \__/ | ##################################################')
print('################################################## |____| |____| \_______/ |___| |___| \_______|_| ##################################################')
print('################################################## ##################################################')
print('######################################################################################################################################################################')
print('############################################################################JANUARY---2018############################################################################')
print('######################################################################################################################################################################')
print('An indepentantly developed, treasure hunting game!')
input('Hit Enter')
for x in range(0, 50):
print('')
while 0 == 0:
print('Choose your race:')
print('1.) Human')
print(' Strong and mildly rich.')
print('2.) Elf')
print(' Slightly weak, they don\'t need or want gold.')
print('3.) Goblin')
print(' Very small and weak, they\'ve got lots of gold though!')
print('4.) Neko')
print(' A humanoid cat. It is strong, and it has a lot of gold.')
password = input(':')
if password == '1':
HP = 100
GOLD = 100
RACE = 'HUMAN'
break
if password == '2':
HP = 75
GOLD = 50
RACE = 'ELF'
break
if password == '3':
HP = 50
GOLD = 200
RACE = 'GOBLIN'
break
if password == '4':
HP = 100
GOLD = 250
RACE = 'NEKO'
break
while 0 == 0:
print('Choose your class:')
print('1.) Fighter')
print(' Extra attack power!')
print('2.) Mage')
print(' A wizard, but less cool!')
print('3.) Rogue')
print(' A fighter/theif thing!')
print('4.) Stanlee')
print(' A mage/rogue thing! Best used as Neko Stanlee')
password = input(':')
if password == '1':
ATK = 10
CLASS = 'FIGHTER'
HM = [0, 1, 1]
break
if password == '2':
ATK = 3
CLASS = 'MAGE'
HM = [0, 0, 1]
break
if password == '3':
ATK = 5
CLASS = 'ROGUE'
HM = [0, 0, 1, 2]
STEAL = 1
break
if password == '4':
ATK = 7
CLASS = 'STANLEE'
HM = [0, 1]
STEAL = 1
MAGIC = 1
break
NAME = input('What is your name?')
print(NAME)
print(RACE)
print(CLASS)
print('HP', HP)
print('GOLD', GOLD)
print('ATK', ATK)
INV = ['Nothing', 'Nothing', 'Nothing', 'Nothing', 'Nothing']
W = ['Nothing']
EXP = 0
while 0 == 0:
while AREA == 0:
if EXP > 5 and EXP < 10:
LVL = 1
if EXP > 10 and EXP < 15:
LVL = 2
if EXP > 15 and EXP < 20:
LVL = 3
if EXP > 25 and EXP < 30:
LVL = 4
if EXP > 30 and EXP < 35:
LVL = 5
if EXP > 35 and EXP < 40:
LVL = 6
if EXP > 45 and EXP < 50:
LVL = 7
if EXP > 55 and EXP < 60:
LVL = 8
if EXP > 65 and EXP < 70:
LVL = 9
if EXP > 70:
LVL = 10
print('SURFACE')
print('You can:')
print('1.) Buy Weapons')
print('2.) Sell Weapons')
print('3.) Buy Items')
print('4.) Sell Items')
print('5.) Heal in the Cleric Shop')
print('6.) Enter Dungeon')
print('7.) Treasure Shop')
print('s.) Stats')
print('i.) Inventory')
password = input(':')
if password == '7':
print('You enter the Treasury Shop...')
time.sleep(3)
for x in range(0, 100):
print('')
while 0 == 0:
print('Silver Bars', SBAR)
print('Gold Bars', GBAR)
print('Crystal Bars', CBAR)
password = input('1.) Sell All\n2.) EXIT\n:')
if password == '1':
print(SBAR*25, 'Silver Bar Total Price')
print(GBAR*50, 'Gold Bar Total Price')
print(CBAR*100, 'Silver Bar Total Price')
GOLD = GOLD +SBAR*25+GBAR*50+CBAR*100
print('New GOLD amount:', GOLD)
SBAR = 0
GBAR = 0
CBAR = 0
if password == '2':
break
if password == 'I' or password == 'i':
print('Inventory')
print('POTION', POTION)
print('SUPER POTION', ROPE)
print('SHEILD', SHEILD)
if password == 'S' or password == 's':
print(NAME)
print(RACE)
print(CLASS)
print('HP', HP)
print('GOLD', GOLD)
print('ATK', ATK)
print(W[0])
print('SHEILD', SHEILD)
print('KILLS', KILLS)
print('LVL', LVL)
input('Hit Enter')
for x in range(0, 100):
print('')
if password == '5':
while 0 == 0:
print('What package do you want?')
print('1.) Full HP Heal 100 G')
print('2.) Half HP Heal 50 G')
print('3.) EXIT')
A = input(':')
if A == '1' and GOLD >= 100:
if RACE == 'HUMAN' or RACE == 'NEKO':
HP = 100
if RACE == 'ELF':
HP = 75
if RACE == 'GOBLIN':
HP = 50
GOLD = GOLD -100
if A == '2' and GOLD >= 50:
if RACE == 'HUMAN' or RACE == 'NEKO':
HP = HP +50
if RACE == 'ELF':
HP = HP +35
if RACE == 'GOBLIN':
HP = HP +25
GOLD = GOLD -50
print('Healed to', HP, 'HP')
if A == '3':
break
if password == '6':
print('You enter the first level of the dungeon...')
time.sleep(3)
AREA = AREA +1
if password == '4':
print('You enter the general store...')
time.sleep(3)
while 0 == 0:
print('What do we have here?')
print('(Automatically sells only one.')
print('1.) POTIONS 20 G EACH')
print('2.) SUPER POTIONS 50 G EACH')
print('3.) SHEILD 45 G EACH')
print('4.) EXIT')
A = input(':')
if A == '1' and POTION != 0:
GOLD = GOLD +20
POTION = POTION -1
if A == '2' and ROPE != 0:
GOLD = GOLD +50
ROPE = ROPE -1
if A == '3' and SHEILD != 0:
GOLD = GOLD +45
SHEILD = SHEILD -1
if A == '4':
break
if password == '3':
print('You enter the general store...')
time.sleep(3)
while 0 == 0:
print('Aye. Whaddya need? Potion? Sheild? We got it!')
print('1.) Potion 25 G')
print(' Recovers 10 HP')
print('2.) Sheild 50 G')
print(' Can be used to absorb one hit, thus breaking it.')
print('3.) Super Potion 60 G')
print(' Recovers 50 HP')
print('4.) EXIT')
if STEAL == 1:
print('5.) Steal')
A = input(':')
if A == '1' and GOLD >= 25:
print('Bought a potion.')
POTION = POTION +1
GOLD = GOLD -25
if A == '2' and GOLD >= 50:
print('Bought a sheild.')
SHEILD = SHEILD +1
GOLD = GOLD -50
if A == '3' and GOLD >= 60:
print('Bought a Super Potion.')
ROPE = ROPE +1
GOLD = GOLD -60
if A == '4':
break
if A == '5' and STEAL == 1:
random.shuffle(STI)
time.sleep(3)
if STI[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage!')
HP = HP -25
break
if STI[0] == '50':
print('Got 50 G!')
GOLD = GOLD +50
if STI[0] == '100':
print('Got 100 G!')
GOLD = GOLD +100
if STI[0] == 'SHEILD':
print('Got a Sheild!')
SHEILD = SHEILD +1
if STI[0] == 'POTION':
print('Got a Potion!')
POTION = POTION +1
else:
print('Got a Super Potion!')
ROPE = ROPE +1
if password == '2' and W[0] != 'Nothing':
print('You enter the weapons shop...')
time.sleep(3)
for x in range(0, 100):
print('')
print('Do you want to sell your current weapon?')
A = input('Y/N?\n:')
if A == 'Y' or A == 'y':
if W[0] == 'WSWORD':
print('I\'ll give ya 10 G!')
input('Hit Enter')
GOLD = GOLD+20
del W[0]
W.append('Nothing')
ATK = ATK -10
if W[0] == 'ISWORD':
print('Hm...Ah! I\'ll give ya 50 G!')
input('Hit Enter')
GOLD = GOLD+70
del W[0]
W.append('Nothing')
ATK = ATK -25
if W[0] == 'TISWORD':
print('Hm...Wow...I\'ll give ya 90 G!')
input('Hit Enter')
GOLD = GOLD+120
del W[0]
W.append('Nothing')
ATK = ATK-50
if W[0] == 'SSWORD':
print('My God! How did you get one of these? I\'ll pay full price, 500 G!')
input('Hit Enter')
GOLD = GOLD +500
del W[0]
W.append('Nothing')
ATK = ATK -100
if W[0] == 'CSWORD':
print('I don\'t have enough money to buy this!')
if A == 'N' or A == 'n':
print('...Aye.')
if password == '1':
print('You enter the weapons shop...')
time.sleep(3)
for x in range(0, 50):
print('')
while 0 == 0:
print('Whaddya want?')
print('1.) Wood Sword 50 G')
print(' ATK +10')
print('2.) Iron Sword 100 G')
print(' ATK +25')
print('3.) Tempered Iron Sword 200 G')
print(' ATK +50')
print('4.) Silver Sword 500 G')
print(' ATK +100')
print('5.) EXIT')
if STEAL == 1:
print('6.) Steal')
if LVL >= 3:
print('7.) Crystal Sword 1000 G')
print(' ATK +500')
A = input(':')
if A == '1' and GOLD >= 50 and W[0] == 'Nothing':#AAAAA FROM PASS
print('You bought a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
GOLD = GOLD -50
if A == '2' and GOLD >= 100 and W[0] == 'Nothing':
print('You bought an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
GOLD = GOLD -100
if A == '3' and GOLD >= 200 and W[0] == 'Nothing':
print('You bought a Tempered Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
GOLD = GOLD -200
if A == '4' and GOLD >= 500 and W[0] == 'Nothing':
print('You bought a Silver Sword')
W.append('SSWORD')
del W[0]
ATK = ATK +100
GOLD = GOLD-500
if A == '5':
break
if A == '6' and STEAL == 1 and W[0] == 'Nothing':
print('Stealing a random weapon...')
time.sleep(3)
random.shuffle(ST)
if ST[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage')
HP = HP -25
break
if ST[0] == 'Wood Sword':
print('OK...You got a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
if ST[0] == 'Iron Sword':
print('Nice...You got an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
if ST[0] == 'Temp Sword':
print('Wow! You got a Tempered Iron Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
if ST[0] == 'Silver Sword':
print('Wow! You got a Silver Sword, you\'re rich if you sell it!')
W.append('TISWORD')
del W[0]
ATK = ATK +100
if HP < 1:
print('You Are Dead!')
if A == '7' and GOLD >= 1000 and W[0] == 'Nothing' and LVL >= 3:
print('You bought a Crystal Sword')
W.append('CSWORD')
del W[0]
ATK = ATK+500
GOLD = GOLD -1000
while AREA == 1:#DUNGEON LVL1
ATK = ATK +LVL
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if KILLS >= 3:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
print('You enter the second level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 20
EHM = [0, 0, 1]
print('Hobgoblin approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -5
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 15 Damage!')
HP = HP -15
else:
print('Hobgoblin missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +3')
EXP = EXP +3
KILLS = KILLS +1
break
if W1[0] == 'Spider':
print('Spider approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0 and SHEILD == 0:
print('You took 15 Damage!')
HP = HP -15
if EHM[0] == 0 and SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('Spider missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +2')
EXP = EXP +2
KILLS = KILLS +1
break
if W1[0] == 'Bat':
print('Bat approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 5 Damage!')
HP = HP -5
else:
print('Bat missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +1')
EXP = EXP +1
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTIONS(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 2:
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if W1[0] == 'Nothing' and KILLS < 6:
print('You found a chest!')
input('Hit Enter To Open')
LOOT = ['50', '50', '50', '100', '100', 'Silver Bar', 'Gold Bar', 'Crystal Bar', 'Nothing', 'Nothing']
random.shuffle(LOOT)
if LOOT[0] == '50':
print('You got 50 G!')
GOLD = GOLD+50
if LOOT[0] == '100':
print('You got 100 G!')
GOLD = GOLD+100
if LOOT[0] == 'Silver Bar':
print('Wow! A Silver Bar!')
SBAR = SBAR +1
if LOOT[0] == 'Gold Bar':
print('Whoa!! A Gold Bar!')
GBAR = GBAR +1
if LOOT[0] == 'Crystal Bar':
print('You\'re rich! A Crystal Bar!')
CBAR = CBAR +1
if W1[0] == 'Nothing' and KILLS >= 6:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 80
EHM = [0, 1]
print('Orc approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 20 Damage!')
HP = HP -20
else:
print('Orc missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +7')
EXP = EXP +7
KILLS = KILLS+1
break
if W1[0] == 'Spider':
EHM = [0, 1]
EHP = 80
print('Skeleton approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'NEKO':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD < 1:
print('You took 30 Damage!')
HP = HP -30
else:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD-1
else:
print('Skeleton missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +6')
EXP = EXP +6
KILLS = KILLS +1
break
if W1[0] == 'Bat':
EHM = [0, 0, 1]
EHP = 70
print('Rat approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 10 Damage!')
HP = HP -10
else:
print('Rat missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +5')
EXP = EXP +5
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTION(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 3:
print('You enter the third level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
print('You can:')
print('1.) Search the level')
print('2.) Use Item')
print('3.) Climb Up')
A = input(':')
if A == '1':
EHP = 10
random.shuffle(W1)
if W1[0] == 'Nothing' and KILLS < 10:
print('You found a chest!')
input('Hit Enter To Open')
LOOT = ['100', '100', '100', '50', '50', '50', '100', '100', 'Silver Bar', 'Gold Bar', 'Crystal Bar', 'Nothing', 'Nothing']
random.shuffle(LOOT)
if LOOT[0] == '50':
print('You got 50 G!')
GOLD = GOLD+50
if LOOT[0] == '100':
print('You got 100 G!')
GOLD = GOLD+100
if LOOT[0] == 'Silver Bar':
print('Wow! A Silver Bar!')
SBAR = SBAR +1
if LOOT[0] == 'Gold Bar':
print('Whoa!! A Gold Bar!')
GBAR = GBAR +1
if LOOT[0] == 'Crystal Bar':
print('You\'re rich! A Crystal Bar!')
CBAR = CBAR +1
if W1[0] == 'Nothing' and KILLS >= 10:
print('You found the stairs to the next level!')
while 0 == 0:
print('Climb Down?')
print('Y/N?')
YN = input(':')
if YN == 'Y' or YN == 'y':
AREA = AREA+1
print('You enter the third level of the dungeon...')
time.sleep(3)
for x in range(0, 100):
print('')
break
else:
break
if W1[0] == 'Hobgoblin':
EHP = 80
EHM = [0, 1]
print('Slime approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for,', int(ATK/2), 'Damage')
EHP = EHP -10
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if M == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if M == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('You took 50 Damage!')
HP = HP -50
else:
print('Slime missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +10')
EXP = EXP +10
KILLS = KILLS +1
break
if W1[0] == 'Spider':
EHM = [0, 1]
EHP = 90
print('Ghoul approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
for x in range(0, 100):
print('')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD < 1:
print('You took 45 Damage!')
HP = HP -45
else:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
else:
print('Ghoul missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +8')
EXP = EXP +8
KILLS = KILLS +1
break
if W1[0] == 'Bat':
EHM = [0, 0, 1]
EHP = 100
print('Ogre approaches!')
while 0 == 0:
print('1.) Attack')
print('2.) Run')
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('3.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
if B == '2':
random.shuffle(HM)
if HM[0] == 0 or HM[0] == 2:
print('You failed to run away')
if HM[0] == 1:
print('You run back to the stairs succesfully.')
input('Hit Enter')
break
if B == '3' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You blocked the blow with your sheild! It broke...')
SHEILD = SHEILD -1
print('You took 50 Damage!')
HP = HP -50
else:
print('Ogre missed!')
if HP < 1:
print('You are dead!')
import FLORIA
if EHP < 1:
print('You won!')
print('EXP +7')
EXP = EXP +7
KILLS = KILLS +1
break
if A == '2':
print('1.) POTION(S)', POTION)
print('2.) SUPER POTION(S)', ROPE)
print('3.) SHEILD(S)', SHEILD)
C = input(':')
if C == '1' and POTION > 0:
print('Recovered 10 HP!')
HP = HP +10
POTION = POTION -1
if C == '2' and ROPE > 0:
print('Recovered 50 HP')
HP = HP +50
ROPE = ROPE -1
if A == '3':
AREA = AREA -1
while AREA == 3:
while 0 == 0:
print('This dungeon level appears to be a rest place...')
print('You can:')
print('1.) Heal in the Hot Spring')
print('2.) Sell Items to the Wandering Merchant')
print('3.) Sell Weapons to the Wandering Merchant')
print('4.) Buy Weapons from the Wandering Merchant')
print('5.) Proceed to the next level...')
print('6.) Buy Sheilds')
password = input(':')
if password == '1':
print('HP Set to 100')
HP = 100
if password == '2':
while 0 == 0:
print('What do we have here?')
print('(Automatically sells only one.')
print('1.) POTIONS 20 G EACH')
print('2.) SUPER POTIONS 50 G EACH')
print('3.) SHEILDS 45 G EACH')
print('4.) EXIT')
A = input(':')
if A == '1' and POTION != 0:
GOLD = GOLD +20
POTION = POTION -1
if A == '2' and ROPE != 0:
GOLD = GOLD +50
ROPE = ROPE -1
if A == '3' and SHEILD != 0:
GOLD = GOLD +45
SHEILD = SHEILD -1
if password == '3':
print('Do you want to sell your current weapon?')
A = input('Y/N?\n:')
if A == 'Y' or A == 'y':
if W[0] == 'WSWORD':
print('I\'ll give ya 10 G!')
input('Hit Enter')
GOLD = GOLD+20
del W[0]
W.append('Nothing')
ATK = ATK -10
if W[0] == 'ISWORD':
print('Hm...Ah! I\'ll give ya 50 G!')
input('Hit Enter')
GOLD = GOLD+70
del W[0]
W.append('Nothing')
ATK = ATK -25
if W[0] == 'TISWORD':
print('Hm...Wow...I\'ll give ya 90 G!')
input('Hit Enter')
GOLD = GOLD+120
del W[0]
W.append('Nothing')
ATK = ATK-50
if W[0] == 'SSWORD':
print('My God! How did you get one of these? I\'ll pay full price, 500 G!')
input('Hit Enter')
GOLD = GOLD +500
del W[0]
W.append('Nothing')
ATK = ATK -100
if W[0] == 'CSWORD':
print('You can\'t sell this to me!')
print('Even ''I'' don\'t have enough to buy it!')
if A == 'N' or A == 'n':
print('...Aye.')
if password == '4':
while 0 == 0:
print('Whoa! You made it this far?\nWhatta ya need?')
print('1.) Wood Sword 50 G')
print(' ATK +10')
print('2.) Iron Sword 100 G')
print(' ATK +25')
print('3.) Tempered Iron Sword 200 G')
print(' ATK +50')
print('4.) Silver Sword 500 G')
print(' ATK +100')
if STEAL == 1:
print('6.) Steal')
print('5.) EXIT')
if LVL >= 3:
print('7.) Crystal Sword 10,000 G')
print(' ATK +500')
A = input(':')
if A == '1' and GOLD >= 50 and W[0] == 'Nothing':#AAAAA FROM PASS
print('You bought a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
GOLD = GOLD -50
if A == '2' and GOLD >= 100 and W[0] == 'Nothing':
print('You bought an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
GOLD = GOLD -100
if A == '3' and GOLD >= 200 and W[0] == 'Nothing':
print('You bought a Tempered Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
GOLD = GOLD -200
if A == '4' and GOLD >= 500 and W[0] == 'Nothing':
print('You bought a Silver Sword')
W.append('SSWORD')
del W[0]
ATK = ATK +100
GOLD = GOLD-500
if A == '5':
break
if A == '6' and STEAL == 1 and W[0] == 'Nothing':
print('Stealing a random weapon...')
time.sleep(3)
random.shuffle(ST)
if ST[0] == 'Caught':
print('Get out of me shop!')
print('The shopkeeper hits you for 25 Damage')
HP = HP -25
break
if ST[0] == 'Wood Sword':
print('OK...You got a Wood Sword')
W.append('WSWORD')
del W[0]
ATK = ATK +10
if ST[0] == 'Iron Sword':
print('Nice...You got an Iron Sword')
W.append('ISWORD')
del W[0]
ATK = ATK +25
if ST[0] == 'Temp Sword':
print('Wow! You got a Tempered Iron Sword')
W.append('TISWORD')
del W[0]
ATK = ATK +50
if ST[0] == 'Silver Sword':
print('Wow! You got a Silver Sword, you\'re rich if you sell it!')
W.append('TISWORD')
del W[0]
ATK = ATK +100
if HP < 1:
print('You Are Dead!')
if A == '7' and GOLD >= 10000 and W[0] == 'Nothing':
print('You bought a Crystal Sword')
W.append('CSWORD')
del W[0]
ATK = ATK+500
GOLD = GOLD -10000
if A == '5':
print('You slowly walk down the staircase...')
time.sleep(3)
print('You reach the bottom of the stairs.')
print('You can see the Sacred Blade told of in legend.')
while 0 == 0:
password = input('Do you take it?\nY/N\n:')
if password == 'Y' or password == 'y':
print('You proceed to the sword\'s pedestal...')
time.sleep(2)
print('Legend says that a great hero sealed away the Dark Wizard with that sword.')
time.sleep(5)
print('You pull the rusted sword from it\'s pedastal...')
time.sleep(1)
SACRED = SACRED +1
print('You keep the sword in your pack..for now.')
time.sleep(2)
print('Suddenly, the earth begins to rumble...')
time.sleep(3)
for x in range(0, 100):
print('')
AREA = AREA +1
break
if A == '6':
while 0 == 0:
print('1.) Buy Sheild 50 G')
print('2.) EXIT')
password = input(':')
if password == '1' and GOLD >= 50:
print('Got a sheild.')
GOLD = GOLD -50
SHEILD = SHEILD +1
if password == '2':
break
while AREA == 4:
print('Dark Wizard')
print('75% Hit rate')
print('300 HP')
EHP = 300
EHM = [0, 1, 1, 1]
while 0 == 0:
print('1.) Attack')
print('HP', HP)
print('ENEMY HP', EHP)
if CLASS == 'MAGE' or CLASS == 'STANLEE':
print('2.) Magic')
B = input(':')
if B == '1':
random.shuffle(HM)
if HM[0] == 0:
print('You miss!')
if HM[0] == 1:
print('You hit for', ATK, 'Damage')
EHP = EHP -ATK
if HM[0] == 2:
print('You hit partially for', int(ATK/2), 'Damage')
EHP = EHP -int(ATK/2)
break
if B == '2' and CLASS == 'MAGE' or CLASS == 'STANLEE' and B == '3':
print('1.) For 100 G you can recover 50 HP.\n2.) For 200 G you can attack for 50 Damage.')
M = input(':')
if password == '1' and GOLD >= 100:
print('You recovered 50 HP!')
HP = HP +50
GOLD = GOLD -10
input('Hit Enter')
for x in range(0, 50):
print('')
if password == '2' and GOLD >= 200:
random.shuffle(HM)
if HM[0] == 0:
print('Missed!')
if HM[0] == 1:
print('Hit!')
EHP = EHP -int(ATK/2)
random.shuffle(EHM)
if EHM[0] == 0:
if SHEILD > 0:
print('You used two sheilds! They broke...')
SHEILD = SHEILD -2
print('You took 75 Damage!')
HP = HP -75
else:
print('Dark Wizard missed!')
if HP < 1:
print('You are dead!')
AREA = 0
print('However you get to restart at the surface.')
print('Without any of your items.')
print('But you get your weapon.')
SBAR = 0
GBAR = 0
CBAR = 0
POTION = 0
ROPE = 0
SHEILD = 0
time.sleep(5)
for x in range(0, 100):
print('')
break
if EHP < 1:
print('You won!')
print('EXP +100')
EXP = EXP +100
KILLS = ('Killed the Dark Wizard!')
time.sleep(3)
print('Credits!')
time.sleep(3)
for x in range(0, 100):
print('')
print('##########CREDITS##########')
time.sleep(2)
print('# -PROGRAMMED BY- #')
time.sleep(2)
print('# CARTER STUTZMAN #')
time.sleep(2)
print('# -FOR- #')
time.sleep(2)
print('# PROGRAMMING #')
time.sleep(2)
print('# EDUCATION #')
time.sleep(2)
print('#
Reply