Sugarcube passage help

KingKing234

New Member
Mar 22, 2018
8
11
Hello, i am very inexperienced with both Twine and Sugarcube. Is there a console command to jump to widgets or passages? thank you
 

HiEv

Member
Sep 1, 2017
384
785
You can't "jump to" a widget, since a widget is like a command. That said, the way to trigger a widget or to go to a passage using the console is fairly similar. You'd do something like this:
JavaScript:
$.wiki("<<goto 'Passage Name'>>")
$.wiki("<<widgetName 'Parameter'>>")
The first line would send you to the passage named "Passage Name" using the . Note that this may break things if certain variables need to be set first. You could also use the to do the same thing from the console, but the earlier way is shorter (at least from the console window).

The second line would call the widget named "widgetName" and pass it a parameter with the string "Parameter". You'll have to know what parameters the widget needs for it to work properly, and it may not work from the console if it's supposed to display something.

If it helps, , you can find the documentation for it there.
 
Last edited: