15. Interrogation, Smart Glasses Scan & Bubble Styles
Beyond mainDialogue, every StoreClient supports interrogation dialogue (interogationDialogue), smart-glasses scan dialogue (glasseDialogue), post-confrontation dialogue (resumeAfterConfrontDialogue), and custom speech bubble themes (bubbleColor).
Core Fields Reference
StoreClient Field | Type | Description |
|---|---|---|
sc.interogationDialogue | Dialogue | Triggered when the player clicks the Interrogate button during a visit. |
sc.glasseDialogue | Dialogue | Triggered when the player activates smart glasses to scan the customer (typically uses "PLAYER" as speaker). |
sc.resumeAfterConfrontDialogue | Dialogue | Played when resuming trade after confronting the customer. |
sc.bubbleColor | string | Set to "dark" to render a dark occult speech bubble (used by cultistTrailer). |
Code Example: Johnny Silverhand Smart-Glasses Scan Easter Egg
csharp
sc.interogationDialogue = new Dialogue()
.SetText(sc.displayName, NpcFrameworkSdk.T("从夜之城一路逃到这鬼空间站,原以为能甩掉荒坂和帕斯泰尔的追兵。", "Thought laying low on this rustbucket station would get Arasaka and Pastel off my tail."))
.NextDialogue()
.SetText(sc.displayName, NpcFrameworkSdk.T("结果真正要命的是插在我后颈里的这块原型生物芯片。", "Turns out the real killer is the prototype biochip slotted in my neck."));
sc.glasseDialogue = new Dialogue()
.SetText("PLAYER", NpcFrameworkSdk.T("(你的目镜扫过他颈后的芯片插槽,电火花闪烁间,扫描仪上竟闪过一行诡异的意识体残影:)", "(Your optics scan the neural socket at his neck; amid sparks, a phantom engram signature flashes across your lens:)"))
.NextDialogue()
.SetText("PLAYER", NpcFrameworkSdk.T("(“醒醒,武侍……把这群企业狗杂碎全烧成灰……”)", "('Wake the hell up, Samurai... We have a station to burn...')"));