Howdy, Stranger!

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

[Sugarcube 2] Equivalent of Harlowes [] < c 1 |

edited October 2015 in Help! with 2.0
Harlowe has a one time clickable
[Clickable]<c1|
to make a text appear somewhere else in the passage with
(click: ?c1)[Text]
Is there a way to do this in Sugarcube 2?

Comments

  • SugarCube's <<click>> macro stays clickable by default, so you'd have to replace it as well as inserting the text. Killing the link and inserting text elsewhere could be done with something like the following:
    <span id="click1"><<click "Clickable">>
    <<replace "#click1">>Clickable<</replace>>
    <<replace "#text1">>Text<</replace>>
    <</click>></span>
    
    <span id="text1"></span>
    

    Or, the same thing, but using the Custom Styles markup:
    @
    
    @
    
  • Thank you!
Sign In or Register to comment.