How-to
Keep a list
Use a list tag to collect things in order, such as the places the player has seen, and read them back.
Before you start
- A list tag holds several elements in order. Decide what goes in it, such as texts naming places.
Steps
In the navigator, click Data › List tags, then New. Type a name, such as
Places, and pressEnter.Under Holds, tick Texts to allow only texts. With nothing ticked, it takes anything.
Give it to the adventure: on Adventure details, under Tags, click + Add tags, click the tag, then Add 1 tag.
Add to it from logic: click Add; in the Result window, next to Outcomes, click Add. Click Adventure, then Tags in the Adventure column, then your tag. Leave the Element column alone.
The operation menu says Set. Click it and click Add to End.
In the second row, click String, type the text, such as
the harbor, and pressEnter. Click Save in the Outcome and Result windows.
To read an element, pick it in the Element column: First, Last, By index (#), By name or By value. In a line's text logic, the column also has Count.
Check it worked
The line reads Adventure → Tag 'Places' Add to End 'the harbor'. To see the list, show its elements in a line (Show a tag's value in a line). With "the harbor" then "the docks" added, a question ending "First some, last more." with some showing First and more showing Last reads "First the harbor, last the docks."
Good to know
- Set replaces the whole list with what you give it. Two Set lines in a row leave only the second.
- The operation menu also has Add to Start, Insert at Index, Remove first, Remove last, removals by index, name or value, Sort by names, Sort by values, Clear list and For Each → Run Logic. The menu opens as a list you can search.