ID:161116
 
Im new to programing, so I decided to do a simple project to get it all going.

mob Stat()//Proc called stat ..() stat("---------------------Stats---------------------") stat("Gold",src.Gold)//Defines the var and uses it *Same as the following!* stat("Health",src.Health) stat("Experience",src.Exp)
This code does work but
How do I make anouther tab in my game a seperate one.
Everytime i try copying the code i get an error or something.
How do i do this?
Please help.
http://www.byond.com/members/ DreamMakers?command=view_post&post=36411

That article by Shadowdarke has everything you need to know about statpanels, but the basic thing you're looking for is statpanel().

mob/Stat()
if(statpanel("Numbers"))
stat("2","4")
if(statpanel("Letters"))
stat("b","d")


Notice the if statements. If the player is looking at the Numbers panel, the stat("2","4") will show. This will prevent unneeded work when a player is not looking at that panel. You could do this without the conditions, but it would make your game work harder.

mob/Stat()
statpanel("Numbers")
stat("2","4")
statpanel("Letters")
stat("b","d")