ID:271147
 
hi im trying to put some commands in a statpanel with a icon. I also dont want the command to show up in commands or any other tab. I need some direction ive tried something like below but to no avale. Please help

    statpanel("Spells/Skills")
stat("")
for(var/mob/M in world)
if(M.race == "Ninja")
if(M.level >=6)
stat(/obj/spells/Stealth)
What you would want to do is make the spell as a object(which I'm sure you've already done along with giving it a icon) and then create a list variable for mobs:
mob
var
list/contents2[0]// basically, its like contents except contents is a built-in list


Then from there, whenever you'd want them to learn a new move:
mob
proc
Learn()
src.contents2 += new /obj/Move5
In response to Mecha Destroyer JD
thanks a bunch worked perfect :)