Hello I am a beginner to Twine and I'm trying to write a text-based adventure. I have used the commands <<set $value = >> and they aren't being executed, with a red message appearing on top, stating that "Twine 2 macros use a different syntax to Twine 1 macros".
Any help would be appreciated as I have no clue about how to fix it and I'm really interested in completing my project
Comments
Alternatively you can download Twine 1.4.
Because you have not stated which story format you are using I am going to assume you are using the default one which is Harlowe. The Harlowe documentation is here.
If you look at the Harlowe documentation you will see that it's macro format looks like (macroname:), so your example of a set macro needs to be changed to the following:
note: I suggest using the word to instead of an equals sign (=) when using the (set:) macro.
I would also suggest to using either is or eq when using the (if:) macro: The reason I suggested the above two things is because in javascript a single equals sign (=) is used for assignment and a double equals sign (==) is used for comparison, and getting these two things mixed up can cause issues in your story.