Code:
obj
gold
icon = 'gold.dmi'
var
amount
verb
get() //obj/gold/verb/get()
set src in view(1) //src must be close
usr << "You pick up [amount] gold."
usr.wealth += amount //add to usr.wealth
del(src) //delete the gold
Problem description:
Test World.dm:38:error:'gold.dmi':cannot find file
But i made a Gold.dmi file
ID:263798
Nov 13 2007, 2:00 pm
|
|
Nov 13 2007, 2:08 pm
|
|
nvm fixed it
|
BYOND is case-sensitive - if your icon file is 'Gold.dmi', 'gold.dmi' won't pick it up.
|
In response to Hyuga_Ryen
|
|
did you code it in to the turf.dmi?
|
In response to GrimmJore
|
|
He already fixed it and your question makes no sense.
|