say you want gold, silver, copper, and platinum in your game how would you go about getting it I got this code...
obj
gold
icon= 'obj.dmi'
icon_state = "gold"
verb
Grab gold()
set src in oview(1)
usr.gold += 2
usr << "You pick up 2 gold pieces!"
del(src)
silver
icon= 'obj.dmi'
icon_state = "silver"
verb
Grab silver()
set src in oview(1)
usr.silver += 5
usr << "You pick up 5 silver pieces!"
del(src)
platinum
icon= 'obj.dmi'
icon_state = "platinum"
verb
Grab platinum()
set src in oview(1)
usr.platinum += 1
usr << "You pick up 1 platinum piece!"
del(src)
copper
icon= 'obj.dmi'
icon_state = "copper"
verb
Grab copper()
set src in oview(1)
usr.copper += 10
usr << "You pick up 10 copper pieces!"
del(src)
I get these
objects.dm:6:error:Grab :invalid proc definition
objects.dm:7:error::invalid proc definition
objects.dm:15:error:Grab :invalid proc definition
objects.dm:16:error::invalid proc definition
objects.dm:24:error:Grab :invalid proc definition
objects.dm:25:error::invalid proc definition
objects.dm:33:error:Grab :invalid proc definition
objects.dm:34:error::invalid proc definition
wahts wrong?
Copyright © 2024 BYOND Software.
All rights reserved.
"Grab_Silver, Grab_Platinum, not Grab Silver", got it?