ID:143568
 
i am trying to make it so when i talk to a mob i get a different messege than everyone else
mob
witch

verb
Talk()
set src in oview(1)
if(src.key == "Sephiroth27")
usr<<"Spirit of the Lava:Welcome home Master here let me help you."
usr.HP=usr.MAXHP
usr.SP=usr.MAXSP
else
usr<<"Spirit of the Lava:Welcome to my Masters area I hope you enjoy your visit."


but i get the else instead of if
Sephiroth27 wrote:
i am trying to make it so when i talk to a mob i get a different messege than everyone else
> mob
> witch
>
> verb
> Talk()
> set src in oview(1)
> if(src.key == "Sephiroth27")
> usr<<"Spirit of the Lava:Welcome home Master here let me help you."
> usr.HP=usr.MAXHP
> usr.SP=usr.MAXSP
> else
> usr<<"Spirit of the Lava:Welcome to my Masters area I hope you enjoy your visit."
>
>
>

but i get the else instead of if

What you are doing wrong is, if(src.key == "Sephiroth27"). You are pretty much saying, if the witch's key is Septh, change the src.key to usr.key.
See you said if src, the mob is the src, you are the usr
mob
witch

verb
Talk()
set src in oview(1)
if(usr.key == "Sephiroth27")
usr<<"Spirit of the Lava:Welcome home Master here let me help you."
usr.HP=usr.MAXHP
usr.SP=usr.MAXSP
else
usr<<"Spirit of the Lava:Welcome to my Masters area I hope you enjoy your visit."

Simple mistake
In response to Crunched
Thanks for the help
Sephiroth27 wrote:
i am trying to make it so when i talk to a mob i get a different messege than everyone else
"Spirit of the Lava:Welcome home, Master. Here, let me help you.
"Spirit of the Lava:Welcome to my Master's area. I hope you enjoy your visit."

>


I have some grammatical corrections to make.