Advertisement
jacobmorgan

Untitled

Dec 9th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.47 KB | None | 0 0
  1. #Rust
  2. import random,time,os
  3. #inventory
  4. name=input('Username:')
  5.  
  6. score={'bow':5,'sh':10,'sp':15,'mh':20,'mp':25,'arrow'
  7.  
  8. user={'Name':name,'Health':0,'Dmg':10,'Score':0}
  9.  
  10. res={'wood':0,'stone':0,'metalfragsore':0,'highqualore':0,'sulfurore':0,'cloth':0,'animalfat':0}
  11.  
  12. crafted={'sh':0,'sp':0,'mh':0,'mp':0,'bow':0,'arrow':0,'lowgrade':0}
  13.  
  14. smelted={'metalfrags':0,'highqual':0,'sulfur':0}
  15.  
  16. arrow={'Dmg':1}
  17.  
  18. if(crafted['bow']==1):
  19.     if(crafted[arrow]<1):
  20.         user['Dmg']==user['Dmg']
  21.        
  22.     if(crafted[arrow]>1):
  23.         user['Dmg']+=arrow['Dmg']
  24. def death():
  25.        if(char['Health']==0)
  26.        print('You Died\nYour score was{}'.format(char['Score']))
  27.  
  28. def play():
  29.     print('1:Farming\n2:Inventory\n3:Help\n4:
  30.  
  31. def help():
  32.    print('This is the help section!\nYou are playing RUST(The text version :3)!\nTo play choose a number!\nNodes give you stone ,sulfur and metal!\nTrees give you wood!\nPlants give you cloth!\nAnimals give you animal fat,meat,cloth etc\nYou can build bases\nGo and play!(play())')
  33.    play()
  34.  
  35. def inventory():
  36.    print('Wood:{}\nStone:{}\nMetal Frags Ore:{}\nHigh Quality Ore:{}\nSulfur Ore:{}\nCloth:{}\nAnimal Fat:{}\nStone Hatchet:{}\nStone Pick:{}\nMetal Hatchet:{}\nMetal Pick:{}\nBow:{}\nArrows:{}'.format(res['wood'],res['stone'],res['metalfragsore'],res['highqualore'],res['sulfurore'],res['cloth'],res['animalfat'],crafted['sh'],crafted['sp'],crafted['mh'],crafted['bow'],crafted['arrow'],crafted['lowgrade']))
  37.    play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement