ID:147001
 
Ok... I have really tried this but

How would you make it so like say you wanted a list of the mobs(just players) and if you clicked on one it would heal them. I really only need help with the list of mobs in view!
Mobs as in clients or Ai?
Heal For GM or For all Players?

Please be more spacific and id be sure to help you.

Tribal Fusion
This should be in newbie central, I believe. But anyways I think this will work(untested).
mob/verb/Heal(M as mob in view())
view() << "[usr] healed [M]"''
M.Health ++

-EDIT-
I forgot about only players, sorry.
mob/verb/Heal(M as mob in view())
if(M.client)
view() << "[usr] healed [M]"''
M.Health ++
In response to Artekia
Artekia wrote:
This should be in newbie central, I believe. But anyways I think this will work(untested).
> mob/verb/Heal(M as mob in view())
> view() << "[usr] healed [M]"''
> M.Health ++
>
>

-EDIT-
I forgot about only players, sorry.
> mob/verb/Heal(M as mob in view())
> if(M.client)
> view() << "[usr] healed [M]"''
> M.Health ++

I think he means...
mob
Click(mob/M)
if(ismob(M)&&M.client)
var/heal=rand(src.int/2,src.int)
M.hp+=heal
src << "You healed [M] for [heal]!"
In response to Hell Ramen
Click is called for the clicked object, not for the clicker with the clicked object taken in as an argument.

You would want the following.
mob
Click()
if(client)
var/heal=rand(usr.int/2,usr.int)
hp+=heal
usr << "You healed [src] for [heal]!"

But I assumed he wanted a list of players in an input prompt. If that is the case he would want the following instead.
mob/verb/heal()
var/list/players=list()
for(var/mob/M in view())
if(M.client)players+=M
var/mob/M=input("Heal who?","Heal")as null|anything in players
if(!players)return 0
M.hp+=10
In response to Tribal Fusion
Na loduwijk helped... He helps me with alot XD