Skip to content

15. 盘问对话、透视目镜扫描与特殊气泡 ​

除了主对话树 mainDialogue 外,每位顾客还支持挂载 盘问对话(interogationDialogue)、透视目镜扫描对话(glasseDialogue)、对质后恢复对话(resumeAfterConfrontDialogue) 以及 暗黑气泡皮肤(bubbleColor)。


核心字段与用法 ​

StoreClient 字段类型说明
sc.interogationDialogueDialogue当玩家点击对话界面上的“盘问”按钮时触发,用于展开角色背景故事或提供交易线索。
sc.glasseDialogueDialogue当玩家开启透视扫描目镜观察该顾客时触发(说话人通常设为 "PLAYER",描写目镜扫描到的义体、武器或意识体残影)。
sc.resumeAfterConfrontDialogueDialogue玩家与顾客当面对质后恢复交易流程时的衔接对话。
sc.bubbleColorstring设为 "dark" 时启用深色神秘学对话气泡(如 RestoredUnusedNPCs 中的猩红教徒 cultistTrailer)。

代码示例:强尼·银手透视目镜扫描彩蛋与暗黑气泡 ​

csharp
// 1. 盘问背景故事
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."));

// 2. 透视目镜扫描彩蛋
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...')"));

Custom NPC Framework Documentation