If you want to make an inventory, at the beginning of the game on a page that does not display, take anything you want to be in the inventory and say
set item=false
Then, have a shop or something that would go to a "purchase(itemname)" page when you press a certain key.
Input this to that page:
set item=true
(Next is if you have money...)
set /a money-=(price)
Make sure you have the - before the =
Now for the Inventory. Make a page called :inventory and in it input this:
if item=true echo (item name here)
That means that it will only display it in the inventory if the player has actually gotten the item.
Or if you want to display something that stacks, input this:
echo (item) - %item%
it would say this for an example...
Arrow - 23