mob
verb
Fire_Spell(mob/M in oview(10))
set category = "Skills"
set hidden = 1
if(usr.mana >= 15)
usr.mana -= 15
var/obj/Fireball/F = new
F.loc = usr.loc
walk_to(F,M,0)
F.damage+=usr.magicstrength
M.health -= F.damage
view() <<"[src] shouts The <b>/red Fire Within</b> has joined in my soul now I release!"
M.Death(src)
del(F)
else
usr <<"<b><i>< font color = red> You don't have enough Fire within!</b></i>"
mob/verb/Invisible()
set category = "Skills"
set hidden = 1
if(invisibility)
src << "You are already invisible!"
else
src << "You turn invisible!"
view()<<" The wind and air flutters around [src] and your hear them finishing a part of a song, 'And when the wind and air combines and turn may the world around be engulfed and sound and the moon shall fall anoon!"
invisibility = 1
sight |= SEE_SELF
sleep(600)
sight &= ~SEE_SELF
invisibility = 0
mob
verb
Sertenall()
set category = "Skills"
set hidden = 1
var/obj/Barricade/S = new
S.loc = usr.loc
sleep(300)
del(S)
Problem description:
I don't know how to add the Mana subtraction from the last two spells. And the fireball spell doesn't delete after it hits something
You don't know how to substract a variable? DM Guide. Don't expect help.