Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1. import random
  2.  
  3.  
  4. battle_start = 1
  5. while battle_start is 1:
  6.     wolf = ('wolf', {'HP': 10, 'MP' : 10})
  7.     bear = ('bear', {'HP': 11, 'MP' : 11})
  8.     hawk = ('hawk', {'HP': 9, 'MP' : 9})
  9.     rat = ('rat', {'HP': 8, 'MP' : 9})
  10.     cobra = ('cobra', {'HP': 12, 'MP' : 9})
  11.     goblin = ('goblin', {'HP': 16, 'MP' : 12})
  12.     giant_rat = ('giant rat', {'HP': 9, 'MP' : 7})
  13.     bugbear = ('bugbear', {'HP': 14, 'MP' : 14})
  14.  
  15.     monster_names = [wolf, bear, hawk, rat, cobra, goblin, giant_rat, bugbear]
  16.  
  17.     select = random.choice(monster_names[0:8])
  18.     selectTwo = random.choice(monster_names[0:8]) + random.choice(monster_names[0:8])
  19.     selectThree = random.choice(monster_names[0:8]) + random.choice(monster_names[0:8]) + random.choice(monster_names[0:8])
  20.     selectFour = random.choice(monster_names[0:8]) + random.choice(monster_names[0:8]) + random.choice(monster_names[0:8]) + random.choice(monster_names[0:8])
  21.  
  22.     selection = [select, selectTwo, selectThree, selectFour]
  23.  
  24.     selector = random.choice(selection [0:8])
  25.  
  26.     print (selector)
  27.  
  28.     battle_start = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement