Storage ideas

1

C-script 2026-08-03 22:24

I was thinking about different types of storage and thought about a code that saves the item the quantity and slot it appears then 0 to 2. 0 for object 1 for tool and 2 for consumable
Example F1942 or Food, the amount is 19, it appears in slot 4 and it is consumable. This is an idea for Script Systems OS storage. Not sure if I will add it but what other ways of unusual storage could there be?


C-script 2026-08-03 22:29

Something like this
'ITEM CODE READER
CLS
INPUT "ENTER CODE";CODE$

CATEGORY$=LEFT$(CODE$,1)

QUANTITY=VAL(MID$(CODE$,2,2))
SLOT=VAL(MID$(CODE$,4,1))
TYPE=VAL(RIGHT$(CODE$,1))

PRINT "CATEGORY:";CATEGORY$

IF CATEGORY$="F" THEN PRINT "FOOD"

PRINT "QUANTITY:";QUANTITY
PRINT "SLOT:";SLOT

PRINT "TYPE:";

IF TYPE=0 THEN PRINT "OBJECT"
IF TYPE=1 THEN PRINT "TOOL"
IF TYPE=2 THEN PRINT "CONSUMABLE"


was8bit 2026-08-07 05:19

What about indexed arrays?


Log in to reply.