ID:155109
 
ok so I figured out finally how to make a output where i can put my stats in it but problem is when i wanna update it doesnt update so im wondering how do you make it so if i have the stat window open with the output for the say strength stat and i transform to 10x that how do i make it update that stat without it adding onto it
If you're talking about an output element within a skin, then you cannot change what has already been outputted.
I would look into using a statpanel or other skin elements to handle this.
In response to El Wookie
ok but i want to make a custom stat screen i dont want a stat panel how do i display my stats in a more customizable way then
In response to Mastergamerx
You can use labels with images if you want customization.
In response to Kaigne
Kaigne wrote:
You can use labels with images if you want customization.

or he could use Labels on a new Window or even the current window and have a proc that manually updates the stats every few seconds... Like:
mob/proc/UpdateStats()
//Set to null to erase current data
src << output(null,"Strength")
src << output(null,"Defense")
//Set to new str/def
src << output(src.Str,"Strength")
src << output(src.Def,"Defense")
//make it happen again in one second
spawn(10)
src.UpdateStats()


Something like that, but thats jsut a quick example, you could do it quite a few other ways.
In response to XxLucifersJesterxX
If your looking to make something just like statpanels, but not have those tabs, you'll want to use grids.
In response to XxLucifersJesterxX
That would work for an output control as well. Now that outputs don't flicker when cleared, it's much more practical to use them in that way.

Outputs can be cleared the same way anything else can.
src << output(null, "output")
In response to Megablaze
i figured out how to fix it by updating labels
In response to XxLucifersJesterxX
Why would you constantly loop this if the players stats aren't even changing. This may build up cpu dependinng on how many players you have in the server