0 votes
by (200 points)

Sorry to keep posting the same question over and over just hoping to add as much info as possible to see if anyone can crack the case cause I've got a fairly tight deadline for finishing this project. Whenever I use (if:) (else:) macros in Harlowe 1.2.3. it only creates one link out of the ones I request it to. For example this, 

{
[
(if: $package is true)[
[[Explore the house]]
[[Alert the guards]]
]
(else:)[
[[Open the package]]
[[Explore the house]]
[[Alert the guards]]
]
}

only creates a link for [[Open the package]]. It evens happens when I open a new story and paste it into an independent passage. Can anyone think of why this is?

I tried changing my macros to be,

{
[
(if: $package)[
[[Explore the house]]
[[Alert the guards]]
]
(else:)[
[[Open the package]]
[[Explore the house]]
[[Alert the guards]]
]
}

 but that only made the issues worse.

If anyone has seen this problem before your help would be greatly appreciated :))

1 Answer

+1 vote
by (159k points)

The fact that you are using Harlowe v1.2.3 indicates you are using an older version (v2.1.1) of the Twine 2 application, and from memory one of the bugs in v2.1.1 related to an issue with the Markup link parser which is used by the Automatic Create Missing Passages feature.

I strongly suggest you upgrade to the newer v2.2.1 Twine 2 application, which doesn't seem to have that issue.

There is also a syntax issue with both of your examples, there is an unnecessary open square bracket '[' on the second line of both of them.

by (200 points)
Aw man I was worried it might be something like that that's a nightmare. Thank you so much I'll give that a go. Fingers crossed hahahaha.
...