Systems

Quest Completion Rewards

A claimable reward card on an NPC's or faction's info panel that unlocks after the player completes a set of quests. The reward runs an action string once per player.


Configuration

config/questcompletionrewards/*.json:

{
  "rewards": [
    {
      "id": "mypack-elder-complete",
      "scope": "npc",
      "targetId": "mypack:elder",
      "titleLangKey": "mypack:reward-elder-title",
      "requirementLangKey": "mypack:reward-elder-req",
      "iconItemCode": "game:gear-rusty",
      "x": 0.5,
      "y": 0.5,
      "requiredQuestIds": ["mypack:elder-1", "mypack:elder-2"],
      "rewardAction": "giveitem game:gear-rusty 5",
      "onceKey": ""
    }
  ]
}
FieldDescription
idReward id. Used by the claim button, and for the default claimed flag
scopenpc or faction - which info panel shows the card (matches the NPC's or faction's reputation id)
targetIdNPC id or faction id of that scope
titleLangKey, requirementLangKeyCard title and requirement text
iconItemCodeItem whose icon is shown
x, yCard position values sent to the panel (leave 0.5 unless a layout needs otherwise)
requiredQuestIdsQuests that must all be completed. A reward with an empty list can never be claimed
rewardActionAction string executed on claim
onceKeyOptional custom claimed-flag key. Default: alegacyvsquest:questcompletionreward:<id>

The claim is marked before the action runs, so a crash mid-grant can never allow a double claim. The claimed flag is stored on the player, so the reward is once per account.

Press ESC to close