Howdy, Stranger!

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

[SOLVED] Change passage through options menu in SugarCube?

edited October 2014 in Help! with 1.x
Hey there,
I'm working on a small project using SugarCube.
I'm currently trying to do this:
When the user turns an option in the MenuOptions passage on, he gets transferred to another passage.
I tried <<display>> and <<print>> and a regular link, but nothing quite works.
This is my current code:
<<optiontoggle "iddqd">>
IDDQD
<<onchange>>
<<print "Serious Room">> /%not working%/
<</optiontoggle>>
Can anyone explain to me if it is possible to do this? And if yes, how?
Thanks!

Comments

  • You can use the run macro to call the History display method to change which passage is currently being displayed. This won't close the Menu Options dialog.

    <<optiontoggle "iddqd">>
    IDDQD
    <<onchange>>
    <<run state.display("Serious Room")>>
    <</optiontoggle>>
  • Did exactly what I wanted! Thank you very much!
Sign In or Register to comment.