ID:149268
 
This stuff always pops up out of nowhere, for no reason.

Problem: The vital statpanel is blank, and the stat statpanel only goes down to the guard variable

Code:
mob/pc
Stat() //starts a stat panel
statpanel("Vital")
stat("HP: ","[hp]/[maxhp]")
stat("Mana: ","[mana]/[maxmana]")
if(action)
stat("Performing Action!")
if(battle)
stat("Battling!")
if(!battle)
stat("Experience: ","[exp]/[exptnl]")
if(!battle)
stat("Gold: ","[gold]")
statpanel("Stat") //names the panel stats
stat("Level: ",level)
stat("HP: ","[hp]/[maxhp]")
stat("Mana: ","[mana]/[maxmana]")
stat("Strength: ","[str]/[wep + str]")
stat("Intelligence: ","[int]")
stat("Dexterity: ","[dex]")
stat("Guard: ","[grd]")
stat("Bloodline: ",bloodline)
stat("Experience: ","[exp]/[exptnl]")
stat("Gold: ","[gold]")
stat("Train: ","[train]")
statpanel("Inv.") //Makes a new stat panel called inventory
stat(contents)

Stat() needs to be called under a var so you would need something like...

mob/pc/var
Stat() //starts a stat panel
statpanel("Vital")
stat("HP: ","[hp]/[maxhp]")
stat("Mana: ","[mana]/[maxmana]")
if(action)
stat("Performing Action!")
if(battle)
stat("Battling!")
if(!battle)
stat("Experience: ","[exp]/[exptnl]")
if(!battle)
stat("Gold: ","[gold]")
statpanel("Stat") //names the panel stats
stat("Level: ",level)
stat("HP: ","[hp]/[maxhp]")
stat("Mana: ","[mana]/[maxmana]")
stat("Strength: ","[str]/[wep + str]")
stat("Intelligence: ","[int]")
stat("Dexterity: ","[dex]")
stat("Guard: ","[grd]")
stat("Bloodline: ",bloodline)
stat("Experience: ","[exp]/[exptnl]")
stat("Gold: ","[gold]")
stat("Train: ","[train]")
statpanel("Inv.") //Makes a new stat panel called inventory
stat(contents)
In response to Strange Kidd
Well, I'm not really a newbie coder here, but I do thank you for your help, even if it fell a bit short of the problem. Stat() is a proc, defined by DM, for mobiles which means it can be declared under a /mob type (which means you can stick it under any types that start with /mob, like /mob/pc for example). I'm busy searching through my immense portions of code in hopes that I can find some stupid contradiction somewhere (like a missing ..() in some other Stat() definition, or somthing), oh well.
In response to Polatrite
Oh well it was a suggestion I'm not that experienced.
In response to Strange Kidd
As I said, I commend you for trying. Some people just login the forums to insult and mock for stuff like this (I'm about to mock myself -_-).
Uhh, I'm not too good with stat panels really, but I noticed

stat("Bloodline: ",bloodline)
Could it be it's catching on this because you don't have it set to
stat("Bloodline: ","[bloodline]")
like everything else? If it's a list or something then I guess it's okay like you have it, not sure if that'll help any, good luck.