if("Me")
it says Im missing an expression....
mob
Assist_Skills
verb/Heal
set category = "Skill"
switch(input("Who would you like to heal?") in list("Me","Someone Else")
if("Me")
set src=usr
set category = "Skills"
if(usr.Health >= usr.Mhealth)
usr.Health = usr.Mhealth
usr.HP_MP_CHECK()
usr. << "You have full health"
else
if(Spirit < 10)
usr << "You need atleast 10 Spirit to heal."
return
Spirit -= 10
usr.Health+=10+Intelligence+rand(0,5)
usr.HP_MP_CHECK()
view() << "[src]([key]): Heal!"
usr. << "You recover some health"
usr.overlays += 'Heal.dmi'
spawn(20)
usr.overlays -= 'Heal.dmi'
if("Someone Else")
if(mob/M as mob in oview(6))
if(usr.Spirit>=10)
view() << "<b> [src]([key]) casts heal on [M]!"
M.overlays += 'Heal.dmi'
spawn(20)
M.overlays -= 'Heal.dmi'
view() << "[src]([key]): Heal!"
M << "<b>\red [usr.name] casts Heal on you!"
M.Health += 10+Intelligence+rand(0,5)
usr.Spirit -= 10
else
usr.<< "There is no one around to heal!"
Well, it might be the 'set's that you've got in the wrong spot:
Or maybe the . that you've got after usr in this line:
usr.<< "There is no one around to heal!"
Other than that, you also shouldn't be using 'usr' here you should be using 'src'. And you shouldn't be using 'view() <<' without an argument, otherwise view() defaults to usr and that can mess things up. You should specify view(src). You also should be using sleep(20) not spawn(20) if you're trying to create a delay before the rest of the code continues. (Actually I can't say that from experience, but I've never seen spawn used that way and its weird and strikes me as wrong.)