Add playable Lucent Ink story

This commit is contained in:
Meta Vens 2026-05-04 23:38:35 +01:00
commit d32735b2ce
8 changed files with 345 additions and 0 deletions

View file

@ -0,0 +1,23 @@
---
title: Lucent Hostage Feed
description: "A playable Ghostlight branch-and-fold scene: negotiate a live hostage crisis on a Lucent media-eye station while influencers, security, and evidence custody all try to eat the room."
---
# Lucent Hostage Feed
_A playable Ghostlight branch-and-fold scene._
You are Mara Quell, a crisis negotiator working through Lucent's official feed controls. Sol Vant has taken Juno Ark hostage near the glass rail of a transfer lounge. The proof that might explain why is also the proof Lucent would very much like to turn into content, liability haze, or preferably both.
This is not a finished game scene. It is a live artifact from Ghostlight's training-data machinery: a branching interactive-fiction scaffold built to test whether character pressure, institutional pressure, and state variables can survive contact with player choice without turning into decorative spreadsheet moss.
<div
class="aetheria-ink-player"
data-ink-title="Lucent Hostage Feed"
data-ink-story="/static/interactive/lucent-hostage-feed.negotiator-branch.v1.json"
></div>
## Source Note
This scene is grounded in [[Worldbuilding/Pre-Elysium/Factions/Powers/Major/Lucent Media|Lucent Media]] and the [[Worldbuilding/Pre-Elysium/Factions/Movements/Reality Architects|Reality Architects]], with some room-scale crisis-feed procedure still marked as Ghostlight draft elaboration rather than settled canon.

View file

@ -13,6 +13,7 @@ Some of the pieces gathered here were written before the current canon settled i
## Current Stories
- [[Lucent Hostage Feed]]
- [[Rain]]
- [[When We Get Home]]

View file

@ -0,0 +1,173 @@
(function () {
let inkRuntimePromise = null
function createElement(tag, className, text) {
const element = document.createElement(tag)
if (className) element.className = className
if (text !== undefined) element.textContent = text
return element
}
function ensureInkRuntime() {
if (window.inkjs && window.inkjs.Story) return Promise.resolve()
if (inkRuntimePromise) return inkRuntimePromise
inkRuntimePromise = new Promise((resolve, reject) => {
const existing = document.querySelector('script[data-aetheria-ink-runtime="true"]')
if (existing) {
existing.addEventListener("load", resolve, { once: true })
existing.addEventListener("error", () => reject(new Error("inkjs runtime failed to load")), {
once: true,
})
return
}
const script = document.createElement("script")
script.src = "/static/interactive/ink.js"
script.defer = true
script.dataset.aetheriaInkRuntime = "true"
script.addEventListener("load", resolve, { once: true })
script.addEventListener("error", () => reject(new Error("inkjs runtime failed to load")), {
once: true,
})
document.head.appendChild(script)
})
return inkRuntimePromise
}
function formatVariableValue(value) {
if (value === true) return "true"
if (value === false) return "false"
if (value === null || value === undefined) return "unset"
return String(value)
}
function collectVariables(story) {
const state = story.variablesState || {}
return Object.keys(state)
.filter((name) => !name.startsWith("_") && name !== "$" && typeof state[name] !== "function")
.sort()
.map((name) => ({
name,
value: state[name],
}))
}
function renderVariables(story, target) {
const variables = collectVariables(story)
target.replaceChildren()
if (variables.length === 0) return
for (const variable of variables) {
const chip = createElement("span", "aetheria-ink-variable")
chip.append(createElement("span", "aetheria-ink-variable-name", variable.name))
chip.append(
createElement("span", "aetheria-ink-variable-value", formatVariableValue(variable.value)),
)
target.append(chip)
}
}
function appendParagraphs(story, transcript) {
let advanced = false
let safety = 0
while (story.canContinue && safety < 1000) {
const text = story.Continue().trim()
safety += 1
if (text.length > 0) {
transcript.append(createElement("p", "aetheria-ink-line", text))
advanced = true
}
}
if (safety >= 1000) {
transcript.append(
createElement(
"p",
"aetheria-ink-error",
"The story did not settle before the safety limit. Something in the Ink is looping.",
),
)
}
if (advanced) {
transcript.scrollTop = transcript.scrollHeight
}
}
function renderChoices(story, choices, variables) {
choices.replaceChildren()
if (story.currentChoices.length === 0) {
choices.append(createElement("p", "aetheria-ink-end", "End of branch. The feed stops blinking."))
return
}
story.currentChoices.forEach((choice, index) => {
const button = createElement("button", "aetheria-ink-choice", choice.text)
button.type = "button"
button.addEventListener("click", () => {
story.ChooseChoiceIndex(index)
appendParagraphs(story, choices.closest(".aetheria-ink-player").querySelector(".aetheria-ink-transcript"))
renderVariables(story, variables)
renderChoices(story, choices, variables)
})
choices.append(button)
})
}
async function initialisePlayer(container) {
if (container.dataset.inkInitialised === "true") return
container.dataset.inkInitialised = "true"
const storySrc = container.dataset.inkStory
if (!storySrc) {
container.textContent = "Ink player is missing data-ink-story."
return
}
const status = createElement("p", "aetheria-ink-status", "Loading story...")
const transcript = createElement("div", "aetheria-ink-transcript")
const choices = createElement("div", "aetheria-ink-choices")
const variables = createElement("div", "aetheria-ink-variables")
const restart = createElement("button", "aetheria-ink-restart", "Restart")
restart.type = "button"
container.replaceChildren(status, transcript, choices, variables, restart)
try {
await ensureInkRuntime()
const response = await fetch(storySrc)
if (!response.ok) {
throw new Error(`could not fetch ${storySrc}: ${response.status}`)
}
const storyJson = await response.json()
function reset() {
const story = new window.inkjs.Story(JSON.stringify(storyJson))
status.textContent = container.dataset.inkTitle || "Interactive story"
transcript.replaceChildren()
appendParagraphs(story, transcript)
renderVariables(story, variables)
renderChoices(story, choices, variables)
}
restart.addEventListener("click", reset)
reset()
} catch (error) {
status.textContent = "Ink player failed to load."
transcript.append(createElement("p", "aetheria-ink-error", error.message || String(error)))
}
}
function initialiseAllPlayers() {
document.querySelectorAll(".aetheria-ink-player").forEach(initialisePlayer)
}
document.addEventListener("nav", initialiseAllPlayers)
if (document.readyState !== "loading") initialiseAllPlayers()
})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -34,6 +34,22 @@ const AetheriaFavicons: QuartzEmitterPlugin = () => ({
}),
})
const AetheriaInkPlayerResources: QuartzEmitterPlugin = () => ({
name: "AetheriaInkPlayerResources",
async *emit() {},
async *partialEmit() {},
externalResources: () => ({
js: [
{
src: "/static/interactive/aetheria-ink-player.js",
loadTime: "afterDOMReady",
contentType: "external",
spaPreserve: true,
},
],
}),
})
/**
* Quartz 4 Configuration
*
@ -137,6 +153,7 @@ const config: QuartzConfig = {
Plugin.Static(),
Plugin.Favicon(),
AetheriaFavicons(),
AetheriaInkPlayerResources(),
Plugin.NotFoundPage(),
// Comment out CustomOgImages to speed up build time
Plugin.CustomOgImages(),

View file

@ -518,6 +518,133 @@ article > h6 {
background: #050a11;
}
.aetheria-ink-player {
display: grid;
gap: 1rem;
margin: 1.3rem 0;
padding: 1rem;
border: 1px solid rgba(89, 183, 255, 0.14);
border-radius: 22px;
background:
radial-gradient(circle at 90% 12%, rgba(255, 138, 42, 0.12), transparent 22%),
linear-gradient(180deg, rgba(5, 10, 17, 0.96), rgba(8, 13, 21, 0.94));
box-shadow:
0 18px 38px rgba(0, 0, 0, 0.24),
inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.aetheria-ink-status {
margin: 0;
color: rgba(255, 138, 42, 0.96);
font-family: var(--titleFont);
font-size: 0.8rem;
font-weight: 300;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.aetheria-ink-transcript {
display: flex;
flex-direction: column;
gap: 0.85rem;
max-height: 62vh;
overflow: auto;
padding: 1rem;
border: 1px solid rgba(89, 183, 255, 0.1);
border-radius: 18px;
background:
linear-gradient(180deg, rgba(10, 17, 26, 0.92), rgba(6, 11, 18, 0.9)),
repeating-linear-gradient(
180deg,
rgba(89, 183, 255, 0.025),
rgba(89, 183, 255, 0.025) 1px,
transparent 1px,
transparent 12px
);
}
.aetheria-ink-line,
.aetheria-ink-end,
.aetheria-ink-error {
margin: 0;
color: rgba(224, 235, 248, 0.94);
font-size: 1rem;
line-height: 1.68;
}
.aetheria-ink-end {
color: rgba(255, 219, 186, 0.92);
font-family: var(--titleFont);
letter-spacing: 0.03em;
}
.aetheria-ink-error {
color: #ffb7a6;
}
.aetheria-ink-choices {
display: grid;
gap: 0.65rem;
}
.aetheria-ink-choice,
.aetheria-ink-restart {
cursor: pointer;
border: 1px solid rgba(89, 183, 255, 0.18);
border-radius: 999px;
background: rgba(89, 183, 255, 0.07);
color: #e7f1ff;
font-family: var(--bodyFont);
font-size: 0.98rem;
line-height: 1.35;
text-align: left;
transition:
border-color 160ms ease,
background 160ms ease,
transform 160ms ease;
}
.aetheria-ink-choice {
padding: 0.75rem 0.95rem;
}
.aetheria-ink-choice:hover,
.aetheria-ink-choice:focus-visible,
.aetheria-ink-restart:hover,
.aetheria-ink-restart:focus-visible {
border-color: rgba(255, 138, 42, 0.5);
background: rgba(255, 138, 42, 0.14);
transform: translateY(-1px);
}
.aetheria-ink-variables {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.aetheria-ink-variable {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.25rem 0.55rem;
border: 1px solid rgba(89, 183, 255, 0.12);
border-radius: 999px;
background: rgba(89, 183, 255, 0.045);
color: rgba(211, 226, 244, 0.8);
font-family: var(--codeFont);
font-size: 0.72rem;
}
.aetheria-ink-variable-value {
color: rgba(255, 184, 116, 0.92);
}
.aetheria-ink-restart {
justify-self: start;
padding: 0.55rem 0.85rem;
}
.aetheria-section-header h2 {
display: block;
margin: 0;