Anyone have an idea if this can be done with Harlowe? Basically, I want to create a series of DataMaps that contain information about my objects, but I'd like to store that information in an array. These objects will contain all the same fields. At various points in the game, I'd like to print out certain fields or maybe add them and so forth.
Currently, I'm not finding anyway to iterate through that array outside of hardcoding each individual index. Is there a way do this?
Any help is appreciated.
Comments
I'm actually writing an article on Twine and I'd like to make sure I have this correct. Again, any thoughts are appreciated.
It is possible to use a combination of a hook, (live:) and (append:) to do what you want.
WARNING: Always remember to include a way to (stop:) your (live:) macros, otherwise they keep triggering. A breakdown of the (live:) macro: note: This Harlowe patch states that you should be able to access array items using a numberic expression but I could not get it to work!