ID:170820
 
Well, I am a pretty good coder myself, I have been coding for a little while now. I know alot of the basics and alot of advanced things. The problem I am having is that I need to make a Saga Panel, but when I try to use the Stat() proc, it just takes over the original stat panel. I want the Saga Panel to stick out with the red font on the tab. If anyone could help me with this, I will be very thankful.
Plagu3r wrote:
Well, I am a pretty good coder myself, I have been coding for a little while now. I know alot of the basics and alot of advanced things. The problem I am having is that I need to make a Saga Panel, but when I try to use the Stat() proc, it just takes over the original stat panel. I want the Saga Panel to stick out with the red font on the tab. If anyone could help me with this, I will be very thankful.

The statpanel() proc can select a new panel for you, but it can't force the panel heading to any particular color.

Lummox JR
In response to Lummox JR
How do I select a new panel then?
In response to Plagu3r
Like this, this is part of my game...

mob
Stat()
if(statpanel("Stats"))
stat("Name",Name)
stat("HP","[usr.HP]/[usr.MaxHP]")
stat("Stamina","[usr.Stam]/[usr.MaxStam]")
stat("Attack",usr.atk)
stat("Ranged Attack",usr.ratk)
stat("------------------------")
stat("Strength", Strength)
stat("Defense",Defense)
stat("Intelligence", Intelligence)
stat("Speed",Speed)
stat("Perception",Perception)
stat("Exp","[src.exp]/[max_exp]")
stat("Level",Level)
stat("------------------------")
stat("Money",Money)
stat("Hunger", Food)
if(statpanel("Inventory"))
statpanel("Inventory",usr.contents)
In response to Lummox JR
but doesn't statpanel() default to red font for the text on the tab? and "set category" in verbs defaults to black.