ID:146430
 
I have created this code and for some reason i get this error hes my full code

/obj/techs/Androids/Energy_Adsorb

verb/Energy_Adsorb(mob/M in oview(1))
set category = "Fighting"
var/drain = (M.maxpowerlevel / 20)
if(usr.bukujutsu == 0)
if(M.dead == 0)
if(M.safe == 0)
if(usr.dead == 0)
if(usr.safe == 0)

if(M.maxpowerlevel <= drain)
usr << "<B>[M.name] isn't worth draining anymore!"
return
else

if(M. == 1)
view(6) << "<B>[usr.name] drains some power from [M.name]!"
M.powerlevel -= drain
return
else
usr << "<B>You need [M.name] to be knocked out to drain them!"


the error i get is

Techniques\Android Techniques\Energy Adsorb\Energy Adsorb.dm:6:error:usr.bukujutsu:undefined var

How can i fix this?

It means that you do not have a bukujutsu variable.
Simple fix
mob
var
bukujutsu=0

Add that in or if you already have somethign similar setup then just add that variable in.