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?
C-script 2026-08-07 17:21
Do you mean like this
'STORAGE CODE READER
CLS
DIM CATEGORY$(19)
DIM QUANTITY(19)
DIM SLOT(19)
DIM TYPE(19)
INPUT "ENTER CODE";CODE$
'READ FIRST ITEM
FOR I=0 TO 1
POS=I*5
CATEGORY$(I)=MID$(CODE$,POS+1,1)
QUANTITY(I)=VAL(MID$(CODE$,POS+2,2))
SLOT(I)=VAL(MID$(CODE$,POS+4,1))
TYPE(I)=VAL(MID$(CODE$,POS+5,1))
NEXT I
'DISPLAY ITEMS
FOR I=0 TO 1
PRINT
PRINT "ITEM ";I
PRINT "CATEGORY:";CATEGORY$(I)
PRINT "QUANTITY:";QUANTITY(I)
PRINT "SLOT:";SLOT(I)
PRINT "TYPE:";
IF TYPE(I)=0 THEN PRINT "OBJECT"
IF TYPE(I)=1 THEN PRINT "TOOL"
IF TYPE(I)=2 THEN PRINT "CONSUMABLE"
NEXT I
was8bit 2026-08-08 07:54 (Edited)
There is a lot of ways to organize stuff...
Check out how i add different data settings to each card...
https://lowresnx.inutilis.com/topic.php?id=3175
Experiment by using simple small sets of data sets until you get a format that you like and can be scaled up :)
Use DEBUG a lot to verify the data is behaving as it should be... i use DEBUG mode a TON (a lot) ;)