sugarcube is not defined

See UI API for more information. Best of luck! Those that do not bundle SugarCube v2: Only the older Twine2.0 series. Examples of good uses: achievement tracking, new game+ data, playthrough statistics, etc. There are several predefined group IDs (:all, :looped, :muted, :paused, :playing) and custom IDs may be defined via <>. (Help) Error: UI is not defined when trying to create a save/load button SugarCube 2 Hi, i'm pretty new to using twine / sugarcube, so i do apologise for the noob question. Opens the built-in share dialog, which is populated from the StoryShare passage. Starts playback of the track and fades it from the specified volume level to 0 (silent) over the specified number of seconds. Thats a twofold issue: getting your function in-scope and waiting until your element is attached to the page. Controls the playback of audio tracks, which must be set up via <>. If the autosave cannot be loaded, for any reason, then the start passage is loaded instead. Sets the maximum number of iterations allowed before the <> macro conditional forms are terminated with an error. Returns a pseudo-random whole number (integer) within the range of the given bounds (inclusive)i.e., [min,max]. Creates a link that silently executes its contents when clicked, optionally forwarding the player to another passage. Tip: By default, it simply returns non-deterministic results from Math.random(), however, when the seedable PRNG has been enabled, via State.prng.init(), it returns deterministic results from the seeded PRNG instead. Registers the passage into the Jump To menu. If constructing the file URL from a shell path, ensure that either it does not contain escapes or you properly convert them into the correct URL percent-encoded form. This macro is functionally identical to <>, save that it uses a button element (