I am trying to make some kind of dynamic passages, so that it's a different kind of passage that pops up. I tried this, but i failed horribly at even making something this simple xP
(set: $test to (random: 1,2))
(if: $test = 1)
You roll a 1]
(else:)
You roll a 2]
Are there any comprehensive guides on the syntax out there? Is Harlowe even the thing to use?
Comments
Because it is a common mistake (that even professional programmers make) to use the wrong number of equals signs (eg. to do an assignment when you meant to do a comparison) the developer of Harlowe recommends using the to and is operators instead.
So your code should be:
note: The examples included in the documentation of the (set:) and (if:) macros shows the usage of the to and is operators.