Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Putting `s around markup symbols doesn't seem to work with squarebrackets

i'm trying something pretty simple; i'd just like the word "[inventory]" to link to the player's inventory, with square brackets around the word (because it looks cool). but when i put the ` marks around something with brackets (just like in every single harlowe tutorial!), it doesn't work. for example:
[[[`[inventory]`->inventory]]]

causes the passage to automatically create a new passage called "[`[status]`->inventory". same goes for if i try and put an individual `[` and `]` on either side of the link. the only way to solve this, i've found, is just to remove my brackets from around the word "status" and sacrifice the look i'm going for.

anyone else run into this issue? it's probably something i'm doing wrong, right?

Comments

  • Based on your mentioning of "harlowe tutorial" I am going to assume you are using Harlowe, but you need to be clearer about which Story Format you are using as answers can be different for each one.

    There are three problems with what you are trying to do:

    1. You have an extra square bracket at each end of your Markup(-based) Link.

    2. The application's Automatically Create Missing Passage feature does not support/understand the non-standard Markup Link you are trying to use so it assumes everything between the Markup Link's open and close double square brackets is the name of the missing passage.

    3. You are using the tilde escape character in a way/place that is not supported, it is meant to escape meaningful characters within the Tex of your passage, not within the parameters of things like a Markup Link.

    Try using the (link-goto:) macro instead.
    (link-goto: "[Inventory]", "inventory")
    
  • awesome! this works perfectly, thank you.

    (you're right, i'm using harlowe; the extra pair of brackets was because it was a hook on a macro. my bad!)
Sign In or Register to comment.