Skip to content

MalifaciousGames/Mali-s-Scripts

Repository files navigation

APIs

Import/Export API

Save or load arbitrary data as files.

Import/Export API


Custom elements

A selection of HTML custom elements.

The Arrow Box element

A type of input element that can be cycled in various ways.

Arrow element

The Cycle element

An element which automatically cycles between its children.

Cycle element

The Pip Bar

Customizable stat bars, meant for ASCII displays.

Pip Bar

The Ring Menu

An element which orders its children into a ring.

Ring menu

Sticky notes

A sticky note custom element, click to unstick.

Sticky notes


Twine scripts

Format-agnostic scripts for Twine games.

Easy keys

An easy way to attach key bindings to DOM elements using the data-key attribute.

Easy keys

Media tester

A script to test asset availability in Twine games.

Media tester

Special passage tags

Enable script and style passages in Twine 2.

Special tags

URL fixer

Properly localize URLs when using Twine's Play/Test feature to launch the game.

URL fixer


Harlowe scripts

Scripts written for the Harlowe story format.

Attribute directives

Lets authors use Harlowe variables inside HTML attributes.

Attribute directives

Hash navigation

Enables linking to passages inside the story via the URL's hash value.

Hash navigation

HTML inputs for Harlowe

Lets authors use any input type in their Harlowe game.

HTML inputs for Harlowe

Link sound

Define a sound effect for every link in a story.

Link sound

Save system

Functions that enable save to and loading from file in Harlowe.

Save system


Sugarcube scripts

Scripts written for the Sugarcube story format that aren't macros.

Container templates

A variation on Sugarcube templates that supports user-supplied contents: ?(templateName: ...contents...).

Container templates

Extra markup

Adds additional functionalities to the link markup.

Extra markup

Hash navigation

Enables linking to passages inside the story via the URL's hash value.

Hash navigation

Swap markup

An easy way to output random content with minimal markup: (a|b|c|d).

Swap markup

Translations API

This API manages translated passages and language settings.

Translations API

Type macro skip for mobile

A way to skip the <<type>> animation on mobile devices.

Type skip

Update markup

Print a variable and automatically update the displayed value when it changes using {{$myVariable}}.

Update markup

About

Various JS scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published