Howdy, Stranger!

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

Setter Links for 2.0.11

I have seen this mentioned a lot and have bumped into it myself. However I find it necessary to bring it up again since I am having issues resolving the matter. Why is it setter links do not function properly. I used the auto generated passage like many have suggested but the link is opening a blank window titled node webkit. Anyone know whats going on with this bug.

Comments

  • Twine 2.0.11 should handle basic setter links just fine—a quick test confirms this.

    What, exactly, are you trying that isn't working? Please show the setter link in question.
  • Combat|$enemy.Name to "Goblin"

    I'm making a combat system for an rpg. This is a single link from one post which is calling object variables from an init passage.
  • edited March 2016
    That is not a valid setter link. The syntax is:
    [[link][setter]]
    [[text|link][setter]]
    [[text->link][setter]]
    [[link<-text][setter]]
    
    For example:
    [[Fight the Goblin!|Combat][$enemy.Name to "Goblin"]]
    

  • The Setter Link syntax mentioned by TheMadExile is for the SugarCube (v1.x and v2.x) story formats only, as neither Harlowe or Snowman support Setter Links.

    The syntax of the Harlowe equivalent would be:
    (link: "Link Text")[
    	(set: $variable to "value")
    	(go-to: "Target Passage")
    ]
    
Sign In or Register to comment.