ID:264951
 
Code:
mob
Stat()
if(usr.character==1)
statpanel("Statistics")
stat("Name: Jeric Cypher")
stat("Race: Human")
stat("Mais: [usr.Mais]")
stat("Health: [usr.Health] | [usr.MaxHealth]")
stat("Energy: [usr.Energy] | [usr.MaxEnergy]")
stat("Mana: [usr.Mana] | [usr.MaxMana]")
statpanel("Inventory")
stat(contents)
else
return


Problem description: During log in and before setting up a character, I would like the stat panel which I have located in the top right of my interface to be hidden until you are actually in game, rather than on the title screen. These panels in the code do not show up, but the tab in my interface does when the character variable is registered as 0.

in your interface file click the windows which is your stats( wherever your stats is) right click it then hit edit. in the main tab there is a checked box for "Visible" just un check it meaning, it's invisible to everyone. then when the time comes add this to your code

winshow(usr, "Whatever your stats window is called",1)
In response to Isenggard
And the stats counts as a window, even though it's on the main screen? I'm just checking because I have it anchored in a certain spot and don't want it to pop-up over the map right after they create their character.

Edit: Nevermind, I tried and it works perfectly. Thank you so much.
In response to Ryu-Kazuki
Ryu-Kazuki wrote:
And the stats counts as a window, even though it's on the main screen? I'm just checking because I have it anchored in a certain spot and don't want it to pop-up over the map right after they create their character.

it counts as a window no matter where you put it on the screen. just right click that particular window and make it non visible. Then with the code I showed you it will let you make it visible whenever a player achieves or does something to set it off (which you decide). If you don't want it to be missing from peoples sight, then make a second window place it right on top of it and rename it to whatever you want then just use the name you renamed the window too, make a copy of the code I gave you, type in the name where it tells you, change the 1 to 0 as in it becomes invisible to everyone (the empty useless, just for show box) and add the other one.