ID:162452
 
What I'm trying to do for this silly game I'm making is only show a stat panel if a usr's stat is 1. For instance.

mob
Login()
usr << "Ah, yes, hello."




var //VAAAARS!
HP = 100 //Must it REALLY be explained?
EXP = 0
MaxEXP = 1000
equip = 0
damage = 8
MP = 10
Level = 1 //Level!
nick = 0 // For Stat Panels, Yes?
jeff = 0
jake = 1

Stat()
if (jake == 1) // If the usr's Jake var == 1.
statpanel("Stats Jake") //I wannit to show the stat panel!
stat("HP:",HP) // Et cetera.
stat("MP:",MP)
stat("EXP:",EXP)
stat("Exp to next:",MaxEXP)
stat("Level:",Level)


Except, it tells me that the if statement will have no effect. Now, before you yell at me for making stupid mistakes, please have mercy. I'm a newbie coder. D:
it doesnt, even then you still gotta tab it...... of what u wanna show...
1. You might wanna put a ..() at the end of your Login() proc.
2. For if() procs, you have to indent what you want under it.
"If this is true, do that." That would be indented.
3. TrueFalse. An easier way for having "var==1" or "var==0".
4. Put a ..() at the beginning of your Stat() proc.
In response to Superbike32
Ah, there we go. Thanks.