Sugarcube
Equivalent functionality in Sugarcube v2
Examples taken from the Sugarcube online documentation
Sugarcube and Moontale have fundamentally different use-cases! This guide is not exhaustive - in particular, it does not cover the DOM, Input, Audio, or utility functions.
Macros and Functions
As a rule, Moontale makes no distinction between a 'macro' and a 'function'. The changer syntax $foo[Text]
makes use of foo
as a Lua function, and using it in code e.g. {$ x = foo(y) $}
is just as valid.
Syntax
The following syntax is identical in Sugarcube and Moontale:
[[Passage]]
[[Link -> Target]]
[[Target <- Link]]
$variable
* Unordered lists
> Blockquote
Sugarcube | Moontale |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note the extra space to force a line break |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Templates, e.g. |
|
|
|
|
|
|
(Of course, this is Lua rather than JavaScript) |
|
|
|
|
|
|
|
|
|
|
| Not supported in markup - use a script block with a |
|
|
Last updated