i want this to show in the menu system
mob/var
Rank
Level
HP = 100
MP = 100
MaxHP = 100
MaxMP = 100
AttackingSkill = 20
MagerySkill = 20
what should i do to make it show the stuff?
ID:172102
![]() Jun 28 2004, 1:27 pm
|
|
![]() Jun 29 2004, 5:26 am
|
|
What do you mean by menu system? Do you mean the little thumbnails that show your stats?
|
I think this is what you mean. This is just an example though.
Stat() statpanel("what you want it to be called") stat("Name:",usr.name) stat("Level:",usr.Level) stat("HP:","[usr.HP]/[usr.MaxHP]") stat("MP:","[usr.MP]/[usr.MaxMP]") stat("Exp:","[usr.Exp]/[usr.ExpNeeded]") stat("Power:",usr.Power) stat("Mana Power:",usr.Mana_Power) stat("Gold:",usr.Gold) The statpanel part is what sets the tab thing at the bottom. |
Stat() statpanel("what you want it to be called") stat("Name:",usr.name) stat("Level:",usr.Level) stat("HP:","[usr.HP]/[usr.MaxHP]") stat("MP:","[usr.MP]/[usr.MaxMP]") stat("Exp:","[usr.Exp]/[usr.ExpNeeded]") stat("Power:",usr.Power) stat("Mana Power:",usr.Mana_Power) stat("Gold:",usr.Gold) Stat().dm:2: Inconsistent indentation. |
You have to remove the spaces and replace them with tabs :/
Stat() ..() statpanel("what you want it to be called") stat("Name:",usr.name) stat("Level:",usr.Level) stat("HP:","[usr.HP]/[usr.MaxHP]") stat("MP:","[usr.MP]/[usr.MaxMP]") stat("Exp:","[usr.Exp]/[usr.ExpNeeded]") stat("Power:",usr.Power) stat("Mana Power:",usr.Mana_Power) stat("Gold:",usr.Gold) You're also going to need that bold piece of code in there too. |
Stat()
..() statpanel("what you want it to be called") stat("Name:",usr.name) stat("Level:",usr.Level) stat("HP:","[usr.HP]/[usr.MaxHP]") stat("MP:","[usr.MP]/[usr.MaxMP]") stat("Exp:","[usr.Exp]/[usr.ExpNeeded]") stat("Power:",usr.Power) stat("Mana Power:",usr.Mana_Power) stat("Gold:",usr.Gold) Stat().dm:1:error:Stat :undefined proc Stat().dm:3:error:"what you want it to be called":value not allowed here Stat().dm:4:error:"Name:":duplicate definition Stat().dm:4:error:usr.name:duplicate definition Stat().dm:4:error:stat :duplicate definition Stat().dm:5:error:"Level:":duplicate definition Stat().dm:5:error:usr.Level:duplicate definition Stat().dm:5:error:stat :duplicate definition Stat().dm:6:error:"HP:":duplicate definition Stat().dm:6:error:usr.HP:value not allowed here Stat().dm:6:error::duplicate definition Stat().dm:6:error:usr.MaxHP:value not allowed here Stat().dm:6:error::duplicate definition Stat().dm:6:error:text "[]/[]":value not allowed here Stat().dm:6:error::duplicate definition Stat().dm:6:error:stat :duplicate definition Stat().dm:7:error:"MP:":duplicate definition Stat().dm:7:error:usr.MP:value not allowed here Stat().dm:7:error::duplicate definition Stat().dm:7:error:usr.MaxMP:value not allowed here Stat().dm:7:error::duplicate definition Stat().dm:7:error:text "[]/[]":value not allowed here Stat().dm:7:error::duplicate definition Stat().dm:7:error:stat :duplicate definition Stat().dm:8:error:"Exp:":duplicate definition Stat().dm:8:error:usr.Exp:value not allowed here Stat().dm:8:error::duplicate definition Stat().dm:8:error:usr.ExpNeeded:value not allowed here Stat().dm:8:error::duplicate definition Stat().dm:8:error:text "[]/[]":value not allowed here Stat().dm:8:error::duplicate definition Stat().dm:8:error:stat :duplicate definition Stat().dm:9:error:"Power:":duplicate definition Stat().dm:9:error:usr.Power:duplicate definition Stat().dm:9:error:stat :duplicate definition Stat().dm:10:error:"Mana Power:":duplicate definition Stat().dm:10:error:usr.Mana_Power:duplicate definition Stat().dm:10:error:stat :duplicate definition Stat().dm:11:error:"Gold:":duplicate definition Stat().dm:11:error:usr.Gold:duplicate definition Stat().dm:11:error:stat :duplicate definition Stat().dm:1:error::empty type name (indentation error?) |