I am using some really helpful code I found in this forum for an inventory system. It works great if something is true or false, for example : you start with no gun and then buy one and it appears in your inventory. However, if you buy bullets these would need a numerical variable ie 6 bullets , then 5 when one is fired etc etc
The inventory can’t show this, it can just show bullets yes or no
I don’t want them in the stats as it is perfectly legitimate in the game to not buy a gun in teh first place , having them as a stat would make them seem vital
Would there be a way to display this ? or alternatively I could just “tell” the reader hoe many are left each time they fire?
here is the startup code:
*create bullets 0 *create gun false
and the shop code
*if (gun = false) *selectable_if (gold >= 10) #I'd like to buy the Gun “A Mark 1 Enfield revolver. This packs a punch even Sir Malcolm would be jealous of” says the shopkeeper, his placid eyes twinkling a little. *set empty_inventory false *set gun true *set bullets 6 *set gold -10 *goto top