ID:173506
 
hello how could i make it so if look at code below
 
obj
Kamehameha
verb
Kamehameha(mob/characters/M in oview(6))
set name = "Kame Hame Ha"
set category = "Fighting"
var/amount = input("How much energy do you wish to put into it?") as num|null
amount = round(amount)

if(amount >= 1)
if(amount > usr.powerlevel)
usr.kame = 1
view(6) << "<font color = red>[usr]:<font color = white> <tt>Kaaaa....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>Meeee....."
sleep(18)
usr.overlays += /obj/kame
view(6) << "<font color = red>[usr]:<font color = white> <tt>Haaaa....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>Meeee....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>HAAAA!!!!!"
view(6) << "<font color = red>From putting too much energy in the Kame Hame Ha wave, [usr] explodes!"
usr.overlays -= /obj/kame
usr.powerlevel = 0
usr.kame = 0
usr.overlays -= /obj/kame
usr.Die()
if(amount <= usr.powerlevel)
usr.kame = 1
view(6) << 'kame_charge.wav'
view(6) << "<font color = red>[usr]:<font color = white> <tt>Kaaaa....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>Meeee....."
sleep(18)
usr.overlays += /obj/kame
view(6) << "<font color = red>[usr]:<font color = white> <tt>Haaaa....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>Meeee....."
sleep(18)
view(6) << "<font color = red>[usr]:<font color = white> <tt>HAAAA!!!!!"
view(6) << 'kamehameha_fire.wav'
usr.overlays -= /obj/kame
if(M.z == usr.z)
usr.overlays -= /obj/kame
s_missile('kame.dmi', usr, M)
usr.kame = 0
usr.powerlevel -= amount
if(M.absorb == 1)
view(6) << "[M] absorbs [usr]'s Kame Hame ha!"
M.powerlevel += amount
if(M.absorb == 0)
M.powerlevel -= amount
var/num = usr.powerlevel
s_damage(src, num, "#FF0000")
view(6) << "<font color = red>[usr] shoots a Kame Hame Ha at [M]!!!"
M.Die()
usr.KO()
else
usr << "<b>You launch your Kame Hame Ha, but [M] is out of sight."
usr.overlays -= /obj/kame
usr.kame = 0


hit it self it would create a struggle?
You need to close your HTML tags, and put <DM> tags around your code. Please edit your original post to fix this.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
You need to close your HTML tags, and put <DM> tags around your code. Please edit your original post to fix this.

Lummox JR

all done :)
In response to CrazyFighter
I'm sorry, but you misinterpreted him. Try again.
In response to Garthor
that better?
In response to CrazyFighter
Much. And you can't subtract type paths from overlays. It doesn't work that way.