Hi. A question about Harlowe.
So, if I want to make mechanic that checks what tags last visited page has... how do I do it? Is it possible?
I'm having a Player Appearance passage. It can be opened any time from the sidebar. Now, I'd like to make it change according where do you open it. For example, it would add some descriptions if you open it from passage with tag "forest."
Also, a related question. Is it possible to make (goto:) move you to last passage that contained certain tag? For example, forcing player to go back to the last "forest" tag they visited.
Comments
Combining these two macros will give you access to the tags of the previous passage: You can further combine the above with an (if:) macro and the Array data contains operator to check if the previous passage contained the "forest" tag:
Can you search passages from history by tags? For example, making (link-goto:) to last passage with certain tag?
Also, can I make sentence that's basically inverted contains, like "if array does not contain x)?
One thing to remember is that a particular Passage Name can appear in the (history:) array more than once.