Skip to content

17. Morning Newspaper Headlines (TriggerNews) ​

Every morning when the player opens the shutter, a newspaper item is delivered to the counter. Calling NpcFrameworkSdk.TriggerNews registers and activates a custom StoreEvent in StoreStation.Instance.storeEventManager, printing your custom headline and article body in the next morning's edition.


SDK Signature ​

csharp
public static void TriggerNews(
    string id,
    string headline,
    string body,
    int durationDays = 1)

Code Example ​

csharp
NpcFrameworkSdk.TriggerNews(
    id: "v_heist_legend_news",
    headline: NpcFrameworkSdk.T("独狼佣兵洗劫企业实验室后全身而退", "Solo Mercenary Escapes After Corporate Lab Raid"),
    body: NpcFrameworkSdk.T("上层区企业特勤队昨日在下层区搜捕无果。代号 V 的神秘佣兵携带原型科技人间蒸发,成为下层区最新传奇。", "Corporate Spec-Ops came up empty-handed in the Lower Levels yesterday as the solo mercenary known as 'V' vanished with prototype tech."),
    durationDays: 2
);

Custom NPC Framework Documentation