ID:269748
 
How would i make a turf make it so certain tabs are hidden??
You could do something like this:
mob
var
open = 0// a var to control whether the panel is visible or not

mob
Stat()
if(src.open)//if the player's open var is NOT equal to zero, then show the statpanel and the stats under it
statpanel("Stuff")
stat("STuff 2")

turf
Turf
Enter(mob/M)
if(ismob(M) && M.client)//if it is a mob and a player
M.open = 1//player's open equals 1..which opens the panel
return..()


Note : If copy and pasted, you make get inconsistent indention errors. Tab/Space as neccessary
In response to Mecha Destroyer JD
hmmmm for this part to i just put the whole statpanel name?

mob
Stat()
if(src.open)//if the player's open var is NOT equal to zero, then show the statpanel and the stats under it
statpanel("Ninjutsu")

cause if thats what ur suppost to do it didnt work =\
In response to Kurosaki_Ichigo-San
Indented properly?
In response to Mecha Destroyer JD
yup no errors and i placed the stuff on the map and its not working =\
In response to Kurosaki_Ichigo-San
Oh it must be solid..Hold a sec..Dman..Don't know why, but it works sometimes and doesnt other times..>_< Other than it being solid, it should still change the var..
turf
Walkthru
Enter(mob/M)
if(ismob(M) && M.client)
M.open = 1
return..()

Try this..It works for me..
In response to Mecha Destroyer JD
its the exact same to as what u just sent
EDIT: OMG NOW I GOT NO STAT PANEL -_-' its gonnneeeeeeeeeeeeeeeeeeeeeeeee!!!! bah this is gay