ID:179320
 
Yes hello and i once again finding myself beg for help agian. I need help getting this verb:



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

statpanels aren't categories... when you set a verb's category, you just type in the text string that will be the name of the panel you want it to appear in. It will create a verb panel with that title.

Put a line like this at the top of your verb code:
set category = "Spells"