Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. inventory2 = []
  2.  
  3. if not inventory2:
  4. print("You are empty handed.")
  5. inventory2 = ["Steel-blade", ["chest-armor",5] ["Plasma-shield"], ["Matter reger", 7] ["Star bracers"] ["Fire Hammer"]
  6.  
  7.  
  8.  
  9. global exp
  10. global level
  11.  
  12. level = "lvl"
  13. exp = "exp"
  14.  
  15.  
  16.  
  17. stats = {"exp", "lvl", "health", "energy", "attack", "defense", "spattk", "spdef", "crit", "speed"}
  18.  
  19. Sarounk = {1: "lvl", 0: "exp", 355: "health", 90: "attack", 89: "defense", 60: "spattk", 130: "spdef", 80: "crit", 64: "speed", "sarcargo"}
  20. Edzra = {1: "lvl", 0: "exp", 400: "health", 86: "attack", 148: "defense", 142: "spattk", 90: "spdef", 62: "crit", 50: "speed", "edzracargo"}
  21. Gordan = {1: "lvl", 0: "exp", 360: "health", 102: "attack", 86: "defense", 51: "spattk", 87: "spdef", 85: "crit", 64: "speed", "gordancargo"}
  22. Cheng = {1: "lvl", 0: "exp", 251: "health", 105: "attack", 67: "defense", 80: "spattk", 90: "spdef", 87: "crit", 67: "speed", "chengcargo"}
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. #functions
  33.  
  34. def levelingup():
  35. if exp => 100
  36. level += 1
  37. exp = 0
  38.  
  39. def selection(select):
  40. myItem = select
  41.  
  42. if select == myItem:
  43. print ("You have", + myItem "seletced.")
  44. Inventory2 = [myItem]
  45. return select
  46.  
  47. def pickup():
  48. newWeapon = ("weapon")
  49. if "weapon" == newWeapon:
  50. inventory2.append((newWeapon))
  51. inventory2.sort()
  52. print(inventory2.get("weapon"))
  53. print(inventory2)
  54. print("You've acquired a new weapon")
  55.  
  56.  
  57. #end of functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement