Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Rust
- import random,time,os
- #inventory
- name=input('Username:')
- score={'bow':5,'sh':10,'sp':15,'mh':20,'mp':25,'arrow'
- user={'Name':name,'Health':0,'Dmg':10,'Score':0}
- res={'wood':0,'stone':0,'metalfragsore':0,'highqualore':0,'sulfurore':0,'cloth':0,'animalfat':0}
- crafted={'sh':0,'sp':0,'mh':0,'mp':0,'bow':0,'arrow':0,'lowgrade':0}
- smelted={'metalfrags':0,'highqual':0,'sulfur':0}
- arrow={'Dmg':1}
- if(crafted['bow']==1):
- if(crafted[arrow]<1):
- user['Dmg']==user['Dmg']
- if(crafted[arrow]>1):
- user['Dmg']+=arrow['Dmg']
- def death():
- if(char['Health']==0)
- print('You Died\nYour score was{}'.format(char['Score']))
- def play():
- print('1:Farming\n2:Inventory\n3:Help\n4:
- def help():
- 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())')
- play()
- def inventory():
- 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']))
- play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement