My stat panel worked fine in my Outlaw Star game, using the same code on another game, it compiles fine, but there's no stat panel! But it acts like there is, like healht and stuff work, ya just can't se em!
Help!Thanks
Gilser
ID:151125
![]() Mar 21 2001, 3:46 pm
|
|
Post the statpanel code. My guess is it's probably at the wrong place in the node tree. I'm not a statpanel whiz myself, but if I can't figure it out, someone else can! I thought I might add that before the inventory thing pops up, I see stats, nothing else, sitting there, then inventory appears over it! Here's the code: mob/Stat() var/S if(statpanel("")) if(src.desc) stat("description",src.desc) if(src.max_life) S = src.life/src.max_life if(S < 0.25) stat("life","[src.max_life] very weak") else if(S < 0.5) stat("life","[src.max_life] weak") else if(S < 0.75) stat("life","[src.max_life] fair") else stat("life","[src.max_life] strong") if(src.max_strength) S = src.strength/src.max_strength if(S < 0.25) stat("strength","[src.max_strength] exhausted") else if(S < 0.5) stat("strength","[src.max_strength] feeble") else if(S < 0.75) stat("strength","[src.max_strength] fair") else stat("strength","[src.max_strength] full") if(src.max_iq) S = src.iq/src.max_iq if(S < 0.25) stat("mind","[src.max_iq] exhausted") else if(S < 0.5) stat("mind","[src.max_iq] feeble") else if(S < 0.75) stat("mind","[src.max_iq] fair") else stat("mind","[src.max_iq] full") if(src.max_aim) S = src.aim/src.max_aim if(S < 0.25) stat("armed","minimally") else if(S < 0.5) stat("armed","lightly") else if(S < 0.75) stat("armed","heavily") else stat("armed","fully") if(src.max_armor) S = src.armor/src.max_armor if(S < 0.25) stat("armored","minimally") else if(S < 0.5) stat("armored","lightly") else if(S < 0.75) stat("armored","heavily") else stat("armored","fully") if(!src.max_immunity) stat("immunity","none") else S = src.immunity/src.max_immunity if(S < 0.25) stat("immunity","[src.max_immunity] very low") else if(S < 0.5) stat("immunity","[src.max_immunity] low") else if(S < 0.75) stat("immunity","[src.max_immunity] fair") else stat("immunity","[src.max_immunity] strong") stat("karma",round(src.karma)) if(src == usr && statpanel("inventory")) stat(src.contents) Thanks Gilser |
if(statpanel("")) Hmm. Try putting something between the empty quotes above, like statpanel("test") or the like. See if that makes a difference. It may just be that BYOND doesn't like empty quotes in statpanel names. |
On 3/21/01 6:50 pm Guy T. wrote:
I think I tried and it didn't work, but I'll mess around with it...but still help!if(statpanel("")) Thanks Gilser |
I think I tried and it didn't work, but I'll mess around with it...but still help! Okay, here's a tip to get you started until someone who knows more about statpanels comes to the rescue! You have a lot of code in that proc, but your problem is that the panel just isn't showing at all. Now, most of that code has nothing to do with showing the panel--most of it is just for calculating the stats. So, one thing to do for starters is haul out the trusty /* */ comment and comment out the whole proc. Then make a copy of the proc and uncomment it, but also remove all the calculations, so you end up with a proc that's only four or five lines long. Making the code small and simple will help you find your problem. Once you get the panel to show up, then you can go back to the commented-out stuff and put it back in. |
Post the statpanel code. My guess is it's probably at the wrong place in the node tree. I'm not a statpanel whiz myself, but if I can't figure it out, someone else can!