Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Harlowe] Click macros that affect named hooks don't work if the hook hasn't been output yet #55

Open
daterre opened this issue Jan 8, 2018 · 1 comment
Labels

Comments

@daterre
Copy link
Owner

daterre commented Jan 8, 2018

See the following example.

[First]<s1|
(click: ?s1)[Second]<s2|
(click: ?s2)[Third]<s3|
(click: ?s3)[Last]

The result is that Second doesn't become a link and therefore Third and Last can never be generated. The reason is that HarloweStoryFormat tries to enchant the hooks links immediately. It should wait for the story to Idle and then process the enchantments.

@daterre daterre added the bug label Jan 8, 2018
@daterre
Copy link
Owner Author

daterre commented Jan 8, 2018

A temporary, albeit quite ugly, workaround:

(link-replace: "First")[(link-replace: "Second")[(link-replace: "Third")[Last]]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant