loading Turfs.dme
Mobs.dm:24:error: gold: undefined var
Objects.dm:14:error: gold: undefined var
Mobs.dm:23:error: src.gold: undefined var
Mob code, where var 'gold' is declared.
mob
var
gold = 0
player
icon = 'Icons.dmi'
icon_state = "Player"
Object code, where the code for the obj gold is.
obj //gold
gold
icon = 'Icons.dmi'
icon_state = "Gold"
//When double clicked usr picks up gold.
DblClick()
usr.gold ++
usr << gold
src = (usr.loc)
usr << "You recieved some gold!"
del.gold
..()
Problem description: I can't figure out what I am doing wrong...I am new, so it is probably a noob mistake. Thanks for the help!
needs to be
usr << usr.gold
Hence the undefined var you haven't attached that query above to a mob :)
[edit] don't think you need del gold since you have moved it to the player.