WowAddons

World of Warcraft Forever API · C_PlayerChoice.md, for your AI

C_PlayerChoice

7 functions, 2 events, 8 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_PlayerChoice.GetCurrentPlayerChoiceInfo

choiceInfo = C_PlayerChoice.GetCurrentPlayerChoiceInfo()

May return nothing.

Returns

choiceInfoPlayerChoiceInfo

C_PlayerChoice.GetNumRerolls

numRerolls = C_PlayerChoice.GetNumRerolls()

Returns

numRerollsnumber

C_PlayerChoice.GetRemainingTime

remainingTime = C_PlayerChoice.GetRemainingTime()

Returns

remainingTimenumber may be nil

C_PlayerChoice.IsWaitingForPlayerChoiceResponse

isWaitingForResponse = C_PlayerChoice.IsWaitingForPlayerChoiceResponse()

Returns

isWaitingForResponsebool

C_PlayerChoice.OnUIClosed

C_PlayerChoice.OnUIClosed()

C_PlayerChoice.RequestRerollPlayerChoice

C_PlayerChoice.RequestRerollPlayerChoice()

C_PlayerChoice.SendPlayerChoiceResponse

C_PlayerChoice.SendPlayerChoiceResponse(responseID)

Arguments

responseIDnumber

Events

PLAYER_CHOICE_CLOSE

No payload.

PLAYER_CHOICE_UPDATE

No payload.

Tables

Enum.PlayerChoiceRarity enumeration

Common0
Uncommon1
Rare2
Epic3

PlayerChoiceInfo structure

objectGUIDWOWGUID
choiceIDnumber
questionTextstring
pendingChoiceTextstring
uiTextureKittextureKit
hideWarboardHeaderbool
keepOpenAfterChoicebool
requiresSelectionbool
hideAnswerArtbool
playerChoiceLayoutPlayerChoiceLayout
optionsPlayerChoiceOptionInfo[]
soundKitIDnumber may be nil
closeUISoundKitIDnumber may be nil

PlayerChoiceOptionButtonInfo structure

idnumber
textstring
disabledbool
showCheckmarkbool
hideButtonShowTextbool
selectedbool
confirmationstring may be nil
tooltipstring may be nil
rewardQuestIDnumber may be nil
soundKitIDnumber may be nil
listTextstring may be nil

PlayerChoiceOptionInfo structure

idnumber
descriptionstring
headerstring
choiceArtIDnumber
desaturatedArtbool
disabledOptionbool
hasRewardsbool
rewardInfoPlayerChoiceOptionRewardInfo
uiTextureKittextureKit
maxStacksnumber
buttonsPlayerChoiceOptionButtonInfo[]
widgetSetIDnumber may be nil
spellIDnumber may be nil
rarityPlayerChoiceRarity may be nil
typeArtIDnumber may be nil
headerIconAtlasElementstring may be nil
subHeaderstring may be nil
consolidateWidgetsbool

PlayerChoiceOptionRewardInfo structure

currencyRewardsPlayerChoiceRewardCurrencyInfo[]
itemRewardsPlayerChoiceRewardItemInfo[]
repRewardsPlayerChoiceRewardReputationInfo[]

PlayerChoiceRewardCurrencyInfo structure

currencyIdnumber
namestring
currencyTexturenumber
quantitynumber
isCurrencyContainerbool

PlayerChoiceRewardItemInfo structure

itemIdnumber
namestring
quantitynumber

PlayerChoiceRewardReputationInfo structure

factionIdnumber
quantitynumber

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows