Do you have a tag called Swamp? And are you used the "test play" feature, or building an HTML file, playing through the game, and then encountering that error message after going through a bunch of passages tagged Swamp?
The test feature is pretty finicky. A lot of times you'll get an error message using it even if there is no error with your Javascript. But you're saying you built the HTML file and played it on your computer, going through a few rooms with that tag and it's still not working. Can you upload the tws file using the "attachment and other options" below this comment box?
There's a bug in the current version of the vanilla story formats which causes an error if you try to pass a singular string argument to visitedTag(). SugarCube does not have this error.
As a workaround, you can simply use a single element array. For example: visitedTag(["something"]) should look below for the real workaround.
Ah, yes, sorry. I thought the vanilla version allowed arrays like SugarCube's, but I was mistaken.
Okay, for realsies this time. Checking for multiple tags is unaffected by the bug, so a working workaround (tested this time) is to specify the tag twice, like so:
Comments
visitedTag()
. SugarCube does not have this error.As a workaround, you can simply use a single element array. For example:
visitedTag(["something"])
should look below for the real workaround.Okay, for realsies this time. Checking for multiple tags is unaffected by the bug, so a working workaround (tested this time) is to specify the tag twice, like so: