ID:145028
 
I was just wondering.What would you have to code in to stop the statpanels from showing?For example like:client.show_verb_panel = 0 but something like that that stops the user from seeing the stat panels

You can just stop your <code>stat()</code> and <code>statpanel()</code> procs from being called in <code>Stat()</code> in a certain condition. Here's an example:

mob
var
show_statpanel = 1

Stat()
if(show_statpanel)
if(statpanel("My Stats"))
stat("My Stat", mystat)
// ...


And to show and hide your stat panel, just set show_statpanel to 1 and 0 respectivly.

mob/verb
toggle_statpanel()
show_statpanel = !show_statpanel // toggle from 1 to 0


~~> Unknown Person

In response to Unknown Person
thnx