ID:269179
 
hey, i was wonderin how to make an npc stop giving an item.. cuz i have a npc saying 'hi heres 50 gold'(not exactly that) then i have src.gold+=50, but i wanna make it so the npc doesnt give the person anymore gold.. can some1 help me plz
Well, you could use a var

mob/var/given
mob/Person
verb
Give()
set src in oview(1)
if(!src.given)
src << "Hello, here is 50 gold"
src.gold += 50
src.given = 1
else
src << "Scram!"
In response to N1ghtW1ng
thanks alot man! how do u do the cool coding white backgrounds thing..?
In response to Oblivon_2
"dm" "/dm"

Replace " " with < >
In response to Oblivon_2
< dm> [CODE HERE] </dm>

Except, no space in the first dm bracket.
In response to Strawgate
lmao, thanks guys