mob
var
race
owner
selected
icon = 'player.dmi'
Login()
..()
world << "[src] has just entered '[world.name]'!"
verb
Start_New()
switch(input("Pick your race","Race Selection") in list("Human","Undead"))
if("Human")
new/mob/human (loc)
owner = M.client.key
if("Undead")
new/mob/skeleton (loc)
owner = M.client.key
human
icon = 'human.dmi'
name = "Human"
DblClick()
if (owner==src)
if (selected==0)
selected = 1
usr << "Human has been selected"
else
selected = 0
usr << "Human has been deselected"
turf
Click()
walk_to(usr,0)
Problem description:
error message:
Mob.dm:15:error:M.client.key:undefined var
Mob.dm:18:error:M.client.key:undefined var
kay so what im trying to do is have it so that when you create a unit with start_new() it will change the variable owner for the mob to your key, then if you double click a unit and it belongs to you, it becomes selected, then if you click on the turf it will take all the selected units and move them to a spot. i think im somewhat close in the beginning of this but by the moving to the spot im probably way off base. any help would be appreciated