Skip to content

16. Wanted Bounties, Arrest Cutscenes & Security Encounters ​

This subsystem covers two law-enforcement mechanics: marking a customer as Wanted (SetWanted + customOnArrestDialogue) and building non-dismissable Security / Spec-Ops interrogation encounters (ClientIntent.DIALOGUE + CompleteSecClient).


1. Wanted Bounties & Custom Arrest Cutscenes ​

Important: the final line of sc.customOnArrestDialogue must call StoreUIManager.Instance?.OnArrestDialoguePlayed() inside SetEndAction so the arrest sequence completes cleanly.

csharp
sc.SetWanted(120, "Vincent (V)", true);

sc.customOnArrestDialogue = new Dialogue()
    .SetText("CLIENT", NpcFrameworkSdk.T("靠,你跟德克斯特那肥猪一样背后捅刀子?!", "Damn it, you're just another backstabbing fixer like Dex?!"))
    .NextDialogue()
    .SetText("SEC", NpcFrameworkSdk.T("发现目标!启动斯安威斯坦抑制器,压制他!", "Target located! Activate Sandevistan dampeners and pin him down!"))
    .SetEndAction(() =>
    {
        NpcFrameworkSdk.SetSaveInt("v_stage", 5);
        StoreUIManager.Instance?.OnArrestDialoguePlayed();
    });

2. Security & Corporate Spec-Ops Investigation Events ​

csharp
var sc = new StoreClient
{
    identifier = "v_act3_corpo_sec",
    displayName = NpcFrameworkSdk.T("企业特勤追缉官", "Corpo Spec-Ops Investigator"),
    spriteName = SpriteDict.GetRandomSecCorpoSpriteName(),
    clientFaction = "FACTION_SECURITY",
    clientIntent = StoreClient.ClientIntent.DIALOGUE,
    nonShootable = true,
    dismissable = false
};
// ... attach AddChoice investigation branches ...
sc.CompleteClientCreation(false);
sc.CompleteSecClient();

Custom NPC Framework Documentation