ID:146446
 
I was Wondering is there anyway of players being able to create their own transformation using transformation templates if so how is it possible using this method below?

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 Transformation"
new /mob/Custom/verb/custom_transformation(src,newname)