ID:160785
 
OK I have this Naruto game and Im editing the move proc so that if kakashi sees someone from a diffrent village than leaf he will attack but, if its someone from leaf he will stay still and players can click on him and talk with him. Here is the code I have already.

        for(var/mob/M in oview())
if(get_step_away(src,M,5))
if(!M.client)

else
if(src.name=="Hatake, Kakashi (NPC)")
if(M.village==src.village)
verb/Talk
set src in oview(2)
set category = "Chat"
set name="Kakashi"
switch(alert("Hello [usr], what can I help you with?","Sharingan Kakashi","I want you to train me!","Nevermind"))
if("I want you to train me")
if(usr.Clan=="Non Clan"&&usr.village=="Hidden Leaf")
usr<<"Well at least someone admires my talents. Sure why not. From this moment forward you will train under me."
usr.Clan="Non Clan(Hatake)"
return
else
usr<<"Im sorry but, you have to be a Non Clan before I teach you anything."
return
else
walk_to(src,M,1,3)

// walk_to(src,M,1,3)
else
continue
spawn(20) src.move()


After doing this I get two warnings. Here they are below.
loading Naruto.dme
Programming\Battlesystem.dm:598:verb :warning: unused label
Programming\Battlesystem.dm:598:Talk :warning: unused label
loading map\Map.dmp
saving Naruto.dmb (DEBUG mode)

Naruto.dmb - 0 errors, 2 warnings (double-click on an error to jump to it)

Plz Help thanks
Post [link]
Verbs are supposed to be indented after the definition.

Like this :

mob/NPC
KakashiNPC
icon='kakashi.dmi'
verb/Talk() // here.
//code
In response to Andre-g1
no Im not trying to make a NPC Im trying to make a npc that can attack the enemy and talk to leaf ninja. That just makes it a npc. It doesn't attack.
Never mind everyone I have just fixed it. BTW Come and play Naruto Sukien. Coming soon. Need staff members.