If you are requesting technical assistance with Twine, please specify:
Twine Version: 2.3.15
Story Format: Chapbook 1.2.1
I understand that I can use arrays in the var section of Chapbook, but I have no ideas how to manipulate items (for example how to insert a new item in an array (item.push (‘something’) seems not to work.
Or how erase an item, a.s.o.
Please note that array.flat() only brings the first level of nested arrays at the same level as the non-nested members. If there is a nested array inside a nested array, you may want to add a number (eg array.flat(2)) if you wish to bring those nested arrays already inside in a nested array at the same level as non-nested arrays.
At this point I would offer to look at sugarcube documentation about array.flat(), which I find very clear, but I’m not sure it’d be appropriate for a chapbook question.