mob
verb
Fire_Ball_Jutsu()
if(src.fatigue < 100)
src.Frozen = 1
var/mob/E=src.enemy
src.Facedir(E)
usr.icon_state = "Base type 1 seal 4"
usr.overlays +='fire ball jutsu base.dmi'
var/obj/Fire_Ball_Jutsu/K = new /obj/Fire_Ball_Jutsu
K.loc = usr.loc
K.nin=usr.nin
K.dir = usr.dir
K.name=usr.name
src.fatigue ++
K.Gowner=usr
for(var/mob/M in oview(4,usr))
if(M.loc==K.loc)
var/damage = src.nin*1.7
src <<output("<font size=1><b><font color = blue>[damage]<font color = white> damage</font>.","combat")
view()<<"<font size=1><b><font color = red>[damage]<font color = white> damage</font>."
M.health -= damage
world << "LOL"
if(M.client)
M.updateHealth()
M.Die(src)
spawn(30)
usr.Frozen = 0
usr.icon_state = ""
usr.overlays -='fire ball jutsu base.dmi'
spawn(50)
del(K)
else
src << "<font color = grey><font size = 1>You need to rest"
return
Problem description:
I dont know if this is a byond problem or my code..
Ok well, i want it so that if the mob is inside of the object then it will execute the rest, but whenever its used when a mob is underneth, nothing happens..
i dont know if its my code problem or something with the new maps(cuz the fire ball jutsu icon is a big icon)
thx
(That's not your problem here, but it's 'smarter' to do.)
Ok well, i want it so that if the mob is inside of the object then it will execute the rest, but whenever its used when a mob is underneth, nothing happens..
I didn't quite understand this...
You want them to Fire, then automatically rest... ?
Which mob? They who fired, or thee who got fired?
Tell us;
Fire Shooter and Burned Victim.
FS Shoots the fireball.
It hits the Burned Victim.
Then it calculates whether dead or not.
It tells the world, "LOL!"
Then it waits patiently in the background for 30 ticks.
Then, bye bye fireball.
What else do you want and when do you want it to happen?