- summary: Adds one challenge to the current fight's challenge list, or replaces the one with the same id.
- area: Game.Challenge
Adds one challenge to the current fight's challenge list, or replaces the one with the same id.
Kind event · Area Game.Challenge
One challenge of the current fight, as a full challenge record: its id, targets, state and bonuses.
WHAT TO DO WHEN YOU RECEIVE IT
1. Look the challenge up by the record's challenge id in the fight's challenge list. 2. INSERT OR REPLACE. The client removes an entry with the same id, then adds the new one, so the record is the challenge's whole current state, not a delta. 3. Resolve the challenge id in the game data (the challenge definition: name, description, icon) if you need to show or reason about it. 4. SEND NOTHING BACK.
IT IS ONE CHALLENGE. The whole list arrives in ChallengeListEvent; a later change of
only the targets arrives in ChallengeTargetsEvent, and the outcome in
ChallengeResultEvent.
PADDING. Builds pad this message with unread members (a bool, a repeated bool, a second record); the challenge record the client reads is the only member named.
When you may send it
- Requires
context_readyinferred
Related messages
- Unsolicited - nothing you send causes this the server announces a challenge when it becomes active in the fight; no request asks for it
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 2 | challenge | Challenge | The challenge to add, or to replace when one with the same id is already listed. | never |