Skip to content

13. 店铺终端委托板悬赏 (PostStoreRequest) ​

玩家店铺电脑终端中设有一个 委托悬赏面板(Requests)。通过 NpcFrameworkSdk.PostStoreRequest,任何自定义 NPC 都可以在剧情推进后向玩家终端发布限时物资悬赏单,玩家在期限内提交指定数量的物品即可领取高额信用点与阵营声望奖励。


SDK 方法签名与参数说明 ​

csharp
public static bool PostStoreRequest(
    string id,             // 委托单唯一 ID
    string title,          // 终端面板显示的悬赏标题
    string description,    // 悬赏详情描述文本
    string requesterName,  // 发布人署名(如 "V (Vincent)")
    string factionId,      // 关联阵营 ID(如 "FACTION_BLACK_MARKET")
    string requiredItemId, // 要求提交的物品 ID(如 "aug_chip")
    int requiredCount = 1, // 要求提交的数量
    int durationDays = 5,  // 悬赏持续有效天数
    int creditReward = 200,// 完成后发放的信用点报酬
    int reputationReward = 10, // 完成后增加的对应阵营声望
    bool force = true)     // 是否强制立即激活(调用 StoreRequest.ActivateRequest)

代码示例:发布 450 信用点义体芯片悬赏 ​

csharp
NpcFrameworkSdk.PostStoreRequest(
    id: "v_afterlife_chip_req",
    title: NpcFrameworkSdk.T("来生佣兵义体芯片悬赏", "Afterlife Merc Aug Chip Bounty"),
    description: NpcFrameworkSdk.T("V 需要额外的原型义体芯片用于修复神经突触,报酬丰厚。", "V needs an extra Augmentation Chip for neural calibration. Pays top credit."),
    requesterName: "V (Vincent)",
    factionId: "FACTION_BLACK_MARKET",
    requiredItemId: "aug_chip",
    requiredCount: 1,
    durationDays: 6,
    creditReward: 450,
    reputationReward: 15,
    force: true
);

Custom NPC Framework Documentation