chroma_solstice/libs/narrator/test/units/conditions-switch.ink
Your Name 03532d29e4 Vendor libs/hump, sfxrlua, json4lua, narrator as real files
These were committed as empty submodule gitlinks with no .gitmodules,
so the folders were never populated and the game could not load
(require of libs/hump/timer, libs/sfxrlua/sfxr, narrator.narrator).
Checked out each at its pinned commit and vendored the files, matching
the existing bundled-libs convention. Removed the junk libs/libs/ tree.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-11 11:37:09 -04:00

78 lines
No EOL
906 B
Text

VAR foo = false
VAR x = 0
-> simple
== simple
{not foo:
Hello!
}
{ foo :
True! -> choice
- else:
False! }
~ foo = not foo
-> simple
=== choice
{ true :
* [Answer] -> nested_inline
}
== nested_inline
{
- foo : { foo: True! | False! }
Text here.
- else: Badaboom!
...again. -> nested_block
}
~ foo = not foo
-> nested_inline
== nested_block
I love you. { true:
And what about you?
{
- false:
False!
- true:
* Choice -> tags
}
...
} Something.
== tags
{
- not foo:
text { true : x = { x } } #success
- else:
-> not_a_label
}
~ foo = not foo
-> tags
== not_a_label
{
- foo: suc...
success #success
- x < 0: mid...
middle
text -> END
- else: els...
(notLabel) else
-> switch
}
~ foo = not foo
-> not_a_label
== switch
{ x:
- 0: zero
- 1: one
- 2: two
- else: lots -> END
}
~ x++
-> switch