ID:261428
 
I had this working for awhile then it stoped. When you start the game all the stats are in the main stat panel. when you click on the icon it transfers from the stat panel to the quest panel or inventory. I want it to be hidden untill i click the button. If that makes sense.

Code...............

Stat()
stat("",src.name)
stat("~*~Stats~*~",src.desc)
if(src.showcontents == 1)
statpanel("Currency",)
statpanel("Small Bag",src.contents)
else
..()
if(src.queststats == 1)
statpanel("Quest Status",)
else
..()

if(src.queststats) statpanel("Quest Status",)
stat("Quests Finished: ",quests)
stat("Corn: ",corn)


if(src.showcontents) statpanel("Currency",)
stat("Silver Coins: ",silvericon)
stat("",Silver)
stat("Gold Coins: ",goldicon)
stat("",Gold)
stat("Sapphire Pieces: ",sapphireicon)
stat("",Sapphire)
Stat.Icons........


Bag
icon='Bag.dmi'
name = "Click to view Inventory"
Click()
if(usr.showcontents)
usr.showcontents = 0
else
usr.showcontents = 1
Quest
icon='Quest.dmi'
name = "Click to view quest stats"
Click()
if(usr.queststats)
usr.queststats = 0
else
usr.queststats = 1


Thanks,
Little Sally
Little Sally wrote:
I had this working for awhile then it stoped. When you start the game all the stats are in the main stat panel. when you click on the icon it transfers from the stat panel to the quest panel or inventory. I want it to be hidden untill i click the button. If that makes sense.

Code...............

> Stat()
> stat("",src.name)
> stat("~*~Stats~*~",src.desc)
> if(src.showcontents == 1)
> statpanel("Currency",)
> statpanel("Small Bag",src.contents)
> else
> ..()
> if(src.queststats == 1)
> statpanel("Quest Status",)
> else
> ..()
>
> if(src.queststats) statpanel("Quest Status",)
> stat("Quests Finished: ",quests)
> stat("Corn: ",corn)
>
>
> if(src.showcontents) statpanel("Currency",)
> stat("Silver Coins: ",silvericon)
> stat("",Silver)
> stat("Gold Coins: ",goldicon)
> stat("",Gold)
> stat("Sapphire Pieces: ",sapphireicon)
> stat("",Sapphire)
> Stat.Icons........
>
>
> Bag
> icon='Bag.dmi'
> name = "Click to view Inventory"
> Click()
> if(usr.showcontents)
> usr.showcontents = 0
> else --Error here
> usr.showcontents = 1
> Quest
> icon='Quest.dmi'
> name = "Click to view quest stats"
> Click()
> if(usr.queststats)
> usr.queststats = 0
> else
> usr.queststats = 1
>

Thanks,
Little Sally

The part where I have "--Error here" next to your "else" statement is one tab too far for one. As for your main error that your getting I dont really know what is causing it as I dont really know what is happening and how it happens.

Sorry Little Sally :-\

Lee