mob
Custom
verb
custom_attack()
set hidden = 1 // iconsistent indentation
var/custom_name =input("What do you want to name this custom?","Custom Attack") as text
var/custom_say =input("What do you want to say when firing custom","Custom Attack") as text
if(usr.kame == 1)
usr << "<tt>You are currently using [custom_name]"
if(usr.kame == 0)
var/amount = usr.powerlevel/50
amount = usr.powerlevel/50
if(amount >= 1)
if(usr.stamina<=0)
usr.kame = 1
view(6) << "<font color = red>[usr]:<font color = white> <tt>[custom_say]!!"
sleep(30)
usr.overlays += /obj/renzuko
sleep(1)
usr.overlays -= /obj/renzuko
usr.powerlevel = 0
usr.kame = 0
usr.KO()
if(usr.stamina>0)
usr.kame = 1
view(6) << "<font color = red>[usr]:<font color = white> <tt>[custom_say]!!"
sleep(20)
usr.stamina-=35
if(M.z == usr.z)
usr.overlays -= /obj/renzuko
s_missile('kame7.dmi', usr, M)
sleep(5) //bad argument definition
s_missile('kame7.dmi', usr, M)
sleep(5)//bad argument definition
s_missile('kame7.dmi', usr, M)
sleep(5)//bad argument definition
s_missile('kame7.dmi', usr, M)
sleep(5)//bad argument definition
s_missile('kame7.dmi', usr, M)
sleep(5)//bad argument definition
s_missile('kame7.dmi', usr, M)
usr.kame = 0//bad argument definition
sleep(7)
usr.overlays -= /obj/renzuko
if(M.absorb == 0||M.absorb==1)
if(M.powerlevel >= usr.powerlevel)
M.random = rand(1,3)
if(M.random == 3)
view(6) << "[M] reflects [usr]'s [custom_name]!"
s_missile('kame7.dmi', M, usr)
usr.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))//bad argument definition
usr.Die()
else
view(6) << "<font color = red>[usr] shoots [custom_name] at [M]!!!"
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
else
view(6) << "<font color = red>[usr] shoots [custom_name] at [M]!!!"
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.damage += (usr.powerlevel/M.powerlevel)*(amount*(rand(2,3)))
M.Die()
else
usr << "<b>You launch your [custom_name], but [M] is out of sight."
usr.overlays -= /obj/renzuko
usr.kame = 0
mob/verb/make_custom_attack(newname as text)
set category = "Fighting"
set name = "Create Move"
new /mob/Custom/verb/custom_attack(src,newname)
i get these errors for some reason
How can i fix this?
customattacks.dm:32:error:M.z:undefined var
customattacks.dm:34:error:M:undefined var
customattacks.dm:36:error:M:undefined var
customattacks.dm:38:error:M:undefined var
customattacks.dm:40:error:M:undefined var
customattacks.dm:42:error:M:undefined var
customattacks.dm:44:error:M:undefined var
customattacks.dm:49:error:M.absorb:undefined var
customattacks.dm:49:error:M.absorb:undefined var
customattacks.dm:50:error:M.powerlevel:undefined var
customattacks.dm:51:error:M.random:undefined var
customattacks.dm:52:error:M.random:undefined var
customattacks.dm:53:error:M:undefined var
customattacks.dm:54:error:M:undefined var
customattacks.dm:55:error:M.powerlevel:undefined var
customattacks.dm:59:error:M:undefined var
customattacks.dm:60:error:M.damage:undefined var
customattacks.dm:60:error:M.powerlevel:undefined var
customattacks.dm:61:error:M.damage:undefined var
customattacks.dm:61:error:M.powerlevel:undefined var
customattacks.dm:62:error:M.damage:undefined var
customattacks.dm:62:error:M.powerlevel:undefined var
customattacks.dm:63:error:M.damage:undefined var
customattacks.dm:63:error:M.powerlevel:undefined var
customattacks.dm:64:error:M.damage:undefined var
customattacks.dm:64:error:M.powerlevel:undefined var
customattacks.dm:65:error:M.damage:undefined var
customattacks.dm:65:error:M.powerlevel:undefined var
customattacks.dm:67:error:M:undefined var
customattacks.dm:68:error:M.damage:undefined var
customattacks.dm:68:error:M.powerlevel:undefined var
customattacks.dm:69:error:M.damage:undefined var
customattacks.dm:69:error:M.powerlevel:undefined var
customattacks.dm:70:error:M.damage:undefined var
customattacks.dm:70:error:M.powerlevel:undefined var
customattacks.dm:71:error:M.damage:undefined var
customattacks.dm:71:error:M.powerlevel:undefined var
customattacks.dm:72:error:M.damage:undefined var
customattacks.dm:72:error:M.powerlevel:undefined var
customattacks.dm:73:error:M.damage:undefined var
customattacks.dm:73:error:M.powerlevel:undefined var
customattacks.dm:74:error:M.Die:undefined var
customattacks.dm:76:error:M:undefined var
customattacks.dm:55:error:usr.damage:undefined var