Skip to content

Reward Types

Kārlis Čerņavskis edited this page Jul 10, 2024 · 1 revision

Quest rewards are defined in the rewards property of a quest. They are a list of reward objects, each of which can be one of the following types: res

questlog:item

Gives the player an item

Properties

  • item: The item to give the player
  • count (optional, default: 1): The amount of the item to give the player

questlog:command

Runs a command as the player

Properties

  • command: The command to run
  • permission_level (optional, default: 2): The command's permission level, when ran as the player (player needn't have this permission level)

questlog:experience

Gives the player experience

Properties

  • experience: The amount of experience to give the player
  • level (optional, default: false): Whether to give the player levels instead of points

questlog:loot_table

Gives the player loot from a loot table

Properties

  • loot_table: The loot table to give the player

questlog:quest

Gives the player a quest

Properties

  • quest: The quest to give the player (by definition path)