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": ""
}
]
}| Field | Description |
|---|---|
id | Reward id. Used by the claim button, and for the default claimed flag |
scope | npc or faction - which info panel shows the card (matches the NPC's or faction's reputation id) |
targetId | NPC id or faction id of that scope |
titleLangKey, requirementLangKey | Card title and requirement text |
iconItemCode | Item whose icon is shown |
x, y | Card position values sent to the panel (leave 0.5 unless a layout needs otherwise) |
requiredQuestIds | Quests that must all be completed. A reward with an empty list can never be claimed |
rewardAction | Action string executed on claim |
onceKey | Optional 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.