obj
Spell_Items
icon = 'M - Spells.dmi'
Fireball
icon_state = "Fire Ball"
Bump(/mob/Characters/)
usr.HP -= 25
del src
var
Mdir = NORTH
New()
Move(NORTH,1)
Move(NORTH,1)
Move(NORTH,1)
Move(NORTH,1)
Move(NORTH,1)
Move(NORTH,1)
Move(NORTH,1)
del src
mob/proc
Fireball()
set category = "Magic"
if(usr.Mana >= 0)
new /obj/Spell_Items/Fireball(usr.loc,Mdir = usr.dir)
usr.Mana -= 1
else
usr<<"You dont have enough SP!"
mob
verb
Fire_ball()
Fireball()
Problem description:
when ever i try to shoot it the fireball stays under me and it says
runtime error: bad arg name 'Mdir'
proc name: New (/obj/Spell_Items/Fireball/New)
usr: Tony (/mob)
src: Fireball (/obj/Spell_Items/Fireball)
call stack:
Fireball (/obj/Spell_Items/Fireball): New( (8,14,1) (/turf/Grass), null)
Tony (/mob): Fireball()
Tony (/mob): Fire ball()