Calculator Community > Axe

Inventories in Axe?

(1/1)

artificialstarlight:
I am wondering how to make a text based inventory system for a game using Axe. I tried this tutorial:
https://www.omnimaga.org/axe-language/inventory-system/msg265458/#msg265458
but it gave me OS Var Missing error at [Str00].

E37:
If you know how big your inventory is going to be, you can use:

--- Code: ---Buff(<size>)->var
--- End code ---
Where you insert the size and the variable. To access it use {var} and ->{var} to write. Add an r after it if you want to change a 2 byte value.
As for text based, that has nothing to do with the inventory system.

What the code you mentioned is doing is taking the os variable named Str00 and copy-pasting its contents as data into the end of the program. He had meaningful data in Str00 but since you don't have any data to include, you don't need to use those statements.

artificialstarlight:
oki thanks, I think I got it :3

Navigation

[0] Message Index

Go to full version