Guest User

Untitled

a guest
Mar 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. def fightMode():
  2. action=raw_input("Type a to attack, s to pick an item, d to runaway.Then hit enter")
  3. if action=="s":
  4. pickItem()
  5. elif action == "a":
  6.  
  7. def isPrime():
  8. defense=10
  9. strength=10
  10. Health= 10
  11. items={"shepards crow":strength+2 and defense+2}
  12. equipedItems=[]
  13. print("You're quietly herding the village's sheep when you suddenly hear a huge roar. Goblns have invaded the village and are coming towards you. Do you A.Runaway B.Fight C.Herd the sheep away")
  14. answer=rawinput("Type your option A,B, or C and press enter")
  15.  
  16. def pickItem():
  17. itemPick=raw_input("Type in your item and press enter")
  18. for x in items:
  19. if itemPick == x:
  20. equipedItems=[x]
  21. print("% equiped" %itemPick)
  22. fightMode()
  23. *else:
  24. print("Item unavailable. Try again")
  25. pickItem()*
  26.  
  27. def Print():
  28. print("Health= %" %Health)
  29. #this is enacted when you get into a fight
  30.  
  31. def pickItem():
  32. itemPick=raw_input("Type in your item and press enter")
  33. for x in items:
  34. if itemPick == x:
  35. equipedItems=[x]
  36. print("% equiped" %itemPick)
  37. fightMode()
  38. else:
  39. print("Item unavailable. Try again")
  40. pickItem()
Add Comment
Please, Sign In to add comment