Howdy, Stranger!

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

Make link refresh current passage?

Sugarcube 2.11.0

When certain conditions are met a 'Light fire' option is shown in my 'Shack' passage, but when the player chooses this option it sends him to another passage (which means he has to then click on 'Shack' to return). This doesn't make sense, as he never actually left the shack in the first place)

How can I have the 'Light fire' option simply refresh the current passage?

Comments

  • edited November 2016
    I've now worked out how to do this. Just in case any other noobs are wondering.

    Using my Light fire example.
    <<click "Light fire">><set $fireLit to true>><<goto "Shack">><</click>>
    Then in the Shack passage:
    You are in a small shack. <if $fireLit>>The warmth from the crackling fire takes the chill out of the air. <<else>>The room is freezing.<</if>>
Sign In or Register to comment.