Using Harlowe and want to display a text only if a player has already seen the passage once. Seems like the is no visited-function in Harlowe? This does not work, and I don't know why:
(set: $myPassageName to (print:(passage:)'s name))
variablecheck --> (print: ($myPassageName))
(if: (history:) contains $myPassageName)[WELCOME BACK]
(else:)[HI STRANGER]
However, not using a variable above solves it by using the following:
(if: (history:) contains "hereIputTheNameofThePassage")[WELCOME BACK]
(else:)[HI STRANGER]
My issue is that I really want to use a variable for the contains-check for the passage name, so I can recycle the script in any passage, instead of having to write it manually like in the above example.
Summed up: I need the simplest way to check if a passage has been visited. and depending on that, display different text.