award

award <creature> <label> [amount]

Record challenge progress for a player.

Challenges track a player's progress toward a goal by an integer count. award adds to that count for the challenge named by <label>, which is how a script credits a player for reaching a milestone — killing a target, finding an item, completing a step.

Arguments

Returns

null. Like the other action commands, a successful award in the handle phase suppresses the event's default action.

Examples

after command (say) {
  require [isplayer $actor]
  award $actor "first-words" 1
}

The require guard limits the credit to players; the actor then gains one point of progress on the first-words challenge.

See also