chroma_solstice/libs/narrator/test/units/lists-basic.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

57 lines
No EOL
1.2 KiB
Text

LIST daysOfTheWeek = Monday, Tuesday, Wednesday, Thursday, Friday
VAR today = Monday
VAR tomorrow = Tuesday
LIST heatedWaterStates = cold, boiling, recently_boiled
VAR kettleState = cold
VAR potState = cold
LIST colours = red, green, blue, purple
LIST moods = mad, happy, blue
VAR status = colours.blue
LIST volumeLevel = off, quiet, medium, loud, deafening
VAR lecturersVolume = quiet
VAR murmurersVolume = quiet
LIST Numbers = one, two, three
VAR cats = one
~ cats = Numbers(2) // score will be "two"
We have { cats } cats.
-> today
== today
Today is { today }. Tomorrow is { tomorrow }.
...
-> kitchen
=== kitchen
- Hm, kettle is { kettleState } and pot is { potState }.
~ kettleState = boiling
- Now kettle is { kettleState } and pot is { potState }.
...
-> status
=== status
Binary values are { status == colours.blue } and { status == moods.blue }
...
-> lecture
=== lecture
{ lecturersVolume < deafening:
~ lecturersVolume++
The lecturer's voice becomes {lecturersVolume}.
The lecturer has {LIST_VALUE(deafening) - LIST_VALUE(lecturersVolume)} notches still available to him.
{ lecturersVolume > murmurersVolume:
~ murmurersVolume++
The murmuring gets louder.
}
-> lecture
}