I was wondering if there is a way to categorise variables? I’m sorry if this has been asked before, but I couldn’t find anything.
I want to make an Inventory on my stats page, and when I have no items, I want it to say
"There is nothing in your Inventory"
The problem is I am using
[b]Inventory[/b] *if (food > 0) *stat_chart text Food *goto fwater *label fwater *if (freshwater > 0) *stat_chart text Freshwater *goto wood *label wood *if (wood > 0) *stat_chart text Wood *goto swater *label swater *if (saltwater > 0) *stat_chart text Saltwater *goto sword *label sword *if (sword > 0) *stat_chart text Sword *finish *if (((((food = 0) and (freshwater = 0)) and (wood = 0)) and (saltwater = 0)) and (sword = 0)) *line_break There is nothing in your Inventory. *finish
which works, but will get really long when I start adding new items.
Is there a way to make food, freshwater, wood etc. all part of a category called Inventory and just use
*if (inventory = 0) *line_break There is nothing in your Inventory. *finish