mob/verb/FireBall(mob/M as mob in oview(3))
if(usr.Magic<=2)//this Will cause a action if the users magic is less then 5//
usr<<"You don't have enough Magic"
else//this calls something if the if is not true//
var/damage=5
M.Health-=damage//This takes what ever the damage var equals from M's health//
usr.Magic-=2
usr<<"You Cast Fireball"
if(M.Health<=0)
world<<"[usr] killed [M]"
del(M)
into this catagory:
Stat()//this calls the Stat proc//
statpanel("Stats")
stat("Health","[usr.Health][usr.MaxHealth]")
stat("Attack Power",Attack)
stat("Magic","[usr.Magic]/[usr.MaxMagic]")
stat("Defense Power",Defense)
stat("Gold",usr.wealth)
stat("Money in account",wealthbank)
statpanel("Inventory",usr.contents)
statpanel("SpellBook",usr.Spells)
PLZ HELP ME sniffel sniffel
Put a line like this at the top of your verb code:
set category = "Spells"