ID:157704
 
I'm putting together a little ragtag game and I've got it coded so that everything compiles correctly. The problem is, my verbs don't show up and function. I'm at a bit of a loss here, can anybody help? Before you read, I'm not the best coder, so there are going to be some things that probably don't need to be in there.

mob
NPC
Clothing_Store_Keeper
name = "{NPC} Clothing Store Keeper"
Race = "Human"
desc = "Talk to this person if you need to purchase some clothes."

Level = 1

Health = 10
Health_Max = 10

Experience = 0
TP = 0

Money = null
Inventory_Min = null
Inventory_Max = null

Doing = 0
Dead = 0
Safe = 1

Kills = 0
Deaths = 0

Strength = 5
Defense = 5

icon = 'NPC Clothing Store Keeper.dmi'





verb
Talk()
if (TalkedToClothes == 0)
.=..()
TalkedToClothes ++
usr << "{NPC} Clothing Store Keeper : Hey you, stranger, you're new around here, what's your name?"
sleep(20)
usr << "[usr] : My name is [usr.name]."
sleep(20)
usr << "{NPC} Clothing Store Keeper : [usr.name] eh? Never heard of anything like that before"
sleep(20)
usr << "[usr] : I heard that you sell clothes. May I buy some?"
sleep(20)
usr << "{NPC} Clothing Store Keeper : It wouldn't be right to deny somebody the right to throw away their money, sure!"
sleep(10)
alert("Purchase some clothes?" , "Yes" , "Not now")
if ("Yes")
usr << ""
if ("Not now")
usr << "{NPC} Clothing Store Keeper : Hope to see you come back here [usr.name]!"
else if (TalkedToClothes >= 1)
.=..()
usr << "{NPC} Clothing Store Keeper : Welcome back [usr.name]! Would you like to purchase any clothes?"
sleep(20)
alert("Purchase some clothes?" , "Yes" , "Not now")
if ("Yes")
usr << ""
if ("Not now")
usr << "{NPC} Clothing Store Keeper : Hope to see you again [usr.name]!"
In response to Kaiochao
Kaiochao wrote:
http://www.byond.com/members/?command=reference&path=verb/ set/src

I see the reference page is taking on a new look. Looking good.
In response to Hulio-G
Thank you Kaiochao, but even with changes it didn't work. I think I'll rewrite it, see if it makes a difference