I have a Table that gets populated with items held by the player when a custom action is called.
I have a number variable that iterates as it counts through the items and puts both the current count number, and the item in a blank row.
I then clear the number variable ready for the next count.
However if I then display the contents of the table using a seperate debug action I use to show what was stored in the table…the numbers in the table show the current value of the variable…not the number initially stored.
so what should look like:
1 Book
2 Apple
3 Spoon
returns as either
3 Book
3 Apple
3 Spoon
or (if I reset the iteration variable)
0 Book
0 Apple
0 Spoon
i’m guessing what my input command is actually doing is a direct reference to the variable, as opposed to storing simply what it contains at that moment.
If that’s the case, how do you write/save current variable data before changing it?
Now the Index entry is “[ListThings]”;
[------------------------------------------------------------]
// ListThings is the iteration counter: - ListThings = ListThings + 1 for each item held before the above table input command.