so far, i have this;
obj
var/value
stone
icon = 'rocks.dmi'
icon_state ="stone"
value = 1
verb
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
ruby
icon = 'rocks.dmi'
icon_state = "ruby"
value = 50
verb
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
diamond
icon = 'rocks.dmi'
icon_state = "diamond"
value = 100
verb
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
emerald
icon = 'rocks.dmi'
icon_state = "emerald"
value = 75
verb
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
mob
var/money=0
mob
Stat()
statpanel("Player Status")
stat("$$$:",src.money)
stat("inventory:")
stat(src.contents)
mob
Shopman
icon = 'shop.dmi'
verb
sell()
switch(input("What do you want to sell?",text) in list ("Stone","Ruby","Emerald","Diamond","Nothing"))
if("Stone")
usr.money+=1
if("Ruby")
usr.money+=50
if("Emerald")
usr.money+=75
if("Diamond")
usr.money+=100
but, how do i make an if() statment to see if they have the rock @ all, also, i defined value, but cant figure out that either >_<
lol
thx for help u guys
I would make it:
Not sure about to rest so I'm not going to lead you in the wrong direction.