Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fightMode():
- action=raw_input("Type a to attack, s to pick an item, d to runaway.Then hit enter")
- if action=="s":
- pickItem()
- elif action == "a":
- def isPrime():
- defense=10
- strength=10
- Health= 10
- items={"shepards crow":strength+2 and defense+2}
- equipedItems=[]
- 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")
- answer=rawinput("Type your option A,B, or C and press enter")
- def pickItem():
- itemPick=raw_input("Type in your item and press enter")
- for x in items:
- if itemPick == x:
- equipedItems=[x]
- print("% equiped" %itemPick)
- fightMode()
- *else:
- print("Item unavailable. Try again")
- pickItem()*
- def Print():
- print("Health= %" %Health)
- #this is enacted when you get into a fight
- def pickItem():
- itemPick=raw_input("Type in your item and press enter")
- for x in items:
- if itemPick == x:
- equipedItems=[x]
- print("% equiped" %itemPick)
- fightMode()
- else:
- print("Item unavailable. Try again")
- pickItem()
Add Comment
Please, Sign In to add comment