Pular para o conteúdo principal

Quest Reward Menu

The quest_reward_menu action opens a configurable GUI that allows players to claim specific rewards. The state of claimed rewards is persisted, ensuring each reward can only be claimed once (or as configured).

Type: Action Entry ID: quest_reward_menu

Configuration

FieldTypeDefaultDescription
menuIdString""Unique ID for this specific menu instance (used to track claimed slots).
artifactRef<ArtifactEntry>emptyReference to the btc_player_state_artifact used to store claim data.
titleString"<gold>Quest Rewards"Title of the inventory GUI.
rowsInt3Size of the GUI in rows (1-6).
backgroundItemItemEmptyItem used to fill empty slots.
rewardSlotsList<RewardSlotConfig>[]List of slots containing claimable rewards.
infoSlotRewardInfoSlotConfig?nullOptional information slot to explain the menu.

Behavior

  • Persistence: Uses the btc_player_state_artifact to remember which slots have already been claimed by the player for this specific menuId.
  • Claiming: When a player clicks a reward slot:
    • The reward items/actions are given.
    • The slot is marked as claimed.
    • The icon changes to the claimed state (or disappears/becomes background).
  • Inventory Check: Prevents claiming if the player's inventory is full (if items are involved).

Use Cases

  • Battle Pass / Event Pass: Create a page of rewards unlocked by completing quests.
  • Milestone Rewards: A menu where players claim rewards for reaching certain levels.