Twine Version: 2.3.12
Story Format: Sugarcube 2.34.1
Hello all,
I’m trying to learn how to use bolean variables. Right now I’m trying to use it to introduce new characters in the game.
In my StoryInit I have a bolean variable
<set $meetmayor to false>
In the StoryMenu under a menu called Journal I want to have NPC profiles written and when the variable is set to true in game the link is available. I wrote in this syntax
<<if $meetmayor to true>>[[Village Mayor]]<>
In one of my passages I wrote a link passage with a bolean variable in it.
[[You secure the village and meet the Mayor.|Page 3][set $meetmayor to true]]
None of it works. Right now I get in my Journal Menu this is displaying
Error: <>: assignment operator found within <> clause (perhaps you meant to use an equality operator: ==, ===, eq, is), invalid: $meetmayor to true
In the passage the link gives me a syntaxerror: Unexpected Identifier.
What am I doing wrong?