ID:139460
 
Code:
            if(usr.multi_targeting == 1)
for(var/atom/T in usr.targets)
if(T in oview(usr,usr.client.view))
if(T.targeted == 1)*
usr.enegry -= 15
usr.stamina -= 5
T.overlays+=icon('kekkai.dmi',"forming kekkai")
sleep(10)
T.overlays-=icon('kekkai.dmi',"forming kekkai")
T.overlays+=icon('kekkai.dmi',"kekkai")
T.AllowMove = 0*
T.in_kekkai = 1*
spawn(200)
if(T.in_kekkai == 1)*
T.AllowMove = 1*
T.in_kekkai = 0*
T.overlays -= T.overlays
T.CreateName()
T.overlays-=icon('kekkai.dmi',"forming kekkai")
T.overlays-=icon('kekkai.dmi',"kekkai")
return


Problem description:
Skill Procs.dm:17:error: T.targeted: undefined var
Skill Procs.dm:24:error: T.AllowMove: undefined var
Skill Procs.dm:25:error: T.in_kekkai: undefined var
Skill Procs.dm:27:error: T.in_kekkai: undefined var
Skill Procs.dm:28:error: T.AllowMove: undefined var
Skill Procs.dm:29:error: T.in_kekkai: undefined var
(Note These are marked with *)

Now what the code is supose to do is put up the kekkai around all the mobs that are in the targets(list, but when compiled i get those six errors. The strange thing is this little code is very similar to the kekkai code i have for a single target and i get no errors from that. So can anyone help me out here?
In here T is an atom not a mob, did you define these on atoms? If not you will have to define on atoms or change T to be what it is defined for.
In response to Nerion (#1)
Ok but if thats the case why does T work for the other statements?
In response to Akriloth (#2)
Because T was not an atom in other cases. Its all about classes and inheritance.