obj
spells
var/dmg
var/mob/trg
fire
Fireball
icon='spells.dmi'
icon_state="fireball"
Bump()
spawn()
zz
if(trg in oview(0))
trg.hp=80
else
sleep(1)
goto zz
Click()
if(!usr.target)return
if(usr.target in oview(8))
for(var/mob/M in oview(8))
if(M.owner==usr.key)
var/obj/spells/fire/Fireball/O=new(M.loc)
O.dmg=roll(5)
O.trg=usr.target
walk_towards(O,usr.target,1)
sleep(10)
del( O )
Problem description:I need it so that when someone uses the spell it shows up in text as "say" i tried manytimes to get it to work but nothing happened
side codeing.....
usr.element=input("Choose your element","Choose Element")in list("Fire","Water","Wind","Earth","Darkness","Light")
if(usr.element=="Fire")
var/obj/spells/fire/Fireball/O=new(usr)
zz
var/A=input("Please name you Lvl 1 Fire spell","New Spell")as text
if(!A)goto zz
O.name="[O.name] ([A])"