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

50 lines
No EOL
1.9 KiB
Text

LIST GuardsOnDuty = (Smith), (Jones), Carter, Braithwaite
LIST CoreValues = strength, courage, compassion, greed, nepotism, delusions_of_godhood
Normal: { GuardsOnDuty }
~ GuardsOnDuty = LIST_INVERT(GuardsOnDuty)
Inverted: { GuardsOnDuty }
Range: { LIST_RANGE(GuardsOnDuty, Jones, Carter) }
...
VAR desiredValues = (strength, courage, compassion, nepotism )
VAR actualValues = ( greed, nepotism, delusions_of_godhood )
{desiredValues ^ actualValues: The new president has at least one desirable quality. A cold {desiredValues ^ actualValues}.}
{LIST_COUNT(desiredValues ^ actualValues) == 1: Correction, the new president has only one desirable quality. {desiredValues ^ actualValues == nepotism: It's the scary one.}}
...
LIST Characters = Alfred, Batman, Robin
LIST Props = champagne_glass, newspaper
VAR BallroomContents = (Alfred, Batman, newspaper)
VAR HallwayContents = (Robin, champagne_glass)
VAR roomState = (Robin, champagne_glass)
-> room
== room
{ roomState ? Alfred: Alfred is here, standing quietly in a corner. } { roomState ? Batman: Batman's presence dominates all. } { roomState ? Robin: Robin is all but forgotten. }
<> { roomState ? champagne_glass: A champagne glass lies discarded on the floor. } { roomState ? newspaper: On one table, a headline blares out WHO IS THE BATMAN? AND *WHO* IS HIS BARELY-REMEMBERED ASSISTANT? }
{ roomState == BallroomContents :
-> letters
- else:
~ roomState = BallroomContents
-> room
}
== letters
LIST Letters = a,b,c
LIST Numbers = one, two, three
VAR mixedList = (a, three, c)
...
{LIST_ALL(mixedList)} // a, one, b, two, c, three
{LIST_COUNT(mixedList)} // 3
{LIST_MIN(mixedList)} // a
{LIST_MAX(mixedList)} // c
{mixedList ? (a,b) } // 0 (false)
{mixedList ^ LIST_ALL(a)} // a, c
{ mixedList >= (one, a) } // 1 (true)
{ mixedList > (three) } // 0 (false)
{ LIST_INVERT(mixedList) } // one, b, two