Chapbook
Equivalent functionality in Chapbook
Examples taken from the Chapbook online documentation
Chapbook and Moontale have fundamentally different use cases! This guide is not exhaustive.
Syntax
The following syntax is identical in both Chapbook and Moontale:
[[Passage]]
[[Link->Target]]
[[Target<-Link]]
*Emphasis*
**Strong emphasis**
`Monospace`
Line breaks \
***
* Unordered lists
1. Ordered lists
Chapbook
Moontale
<del>Strike through</del>
~~Strike through~~
> [[Fork target]]
⚠️ Not supported
You can use a custom tag or just the plain link to achieve this
[align center]
and friends
$Align.right[
, $Align.center[
, $Align.justify[
, and $Align.left[
[after 1 second]
$Delay(1.0)[
🚧
[append]
Don't leave a line break between sections
[note]
I really need a better beginning
{$ -- I really need a better beginning $}
{back link, label: 'retreat for now'}
$Back[retreat for now]
🚧
{restart link, label: 'Oh forget it all'}
$On.click(hardReset)[Oh forget it all]
{link to: 'passage', label: 'Text'}
$Link('passage')[Text]
{reveal link: 'something odd occurred', text: 'I saw five deer...'}
$On.click<<x = true; Reload()>>[something odd occurred]
$If(x)[I saw five deer...]
{reveal link: 'groceries', passage: 'Shopping list'}
$On.click<<x = true; Reload()>>[groceries]
$If(x)[[ ->Shopping list]]
{embed passage: 'L.A.'}
$Display('L.A.')
strength: 18
dexterity: 7
--
{$ strength = 18
dexterity = 7
$}
"Hi, {name}," your guide greets you.
"Hi, $name," your guide greets you.
_unreasonablePrice: cash + 3
--
I want {_unreasonablePrice} for it
I want <$ cash + 3 $> for it
[if hasKey]
You could try [[unlocking it]] with the key
$If(hasKey)[You could try [[unlocking it]] with the key]
[else]
Nothing to do here but [[turn back]]
$Else[ Nothing to do here but [[turn back]] ]
transportation: 'car'
transportation (kilometers > 1000): 'plane'
--
${ if(kilometers > 1000) then
transporation = 'car'
else
transportation = 'car'
end $}
my.favorite.variable: 'red'
--
{$ my = { favorite = { variable = 'red } } $}
Last updated