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
choiceInfo = C_PlayerChoice.GetCurrentPlayerChoiceInfo()
May return nothing.
Returns
numRerolls = C_PlayerChoice.GetNumRerolls()
Returns
remainingTime = C_PlayerChoice.GetRemainingTime()
Returns
remainingTime | number may be nil | |
|---|
isWaitingForResponse = C_PlayerChoice.IsWaitingForPlayerChoiceResponse()
Returns
C_PlayerChoice.OnUIClosed()
C_PlayerChoice.RequestRerollPlayerChoice()
C_PlayerChoice.SendPlayerChoiceResponse(responseID)
Arguments
Events
Tables
Common | 0 |
|---|
Uncommon | 1 |
|---|
Rare | 2 |
|---|
Epic | 3 |
|---|
objectGUID | WOWGUID | |
|---|
choiceID | number | |
|---|
questionText | string | |
|---|
pendingChoiceText | string | |
|---|
uiTextureKit | textureKit | |
|---|
hideWarboardHeader | bool | |
|---|
keepOpenAfterChoice | bool | |
|---|
requiresSelection | bool | |
|---|
hideAnswerArt | bool | |
|---|
playerChoiceLayout | PlayerChoiceLayout | |
|---|
options | PlayerChoiceOptionInfo[] | |
|---|
soundKitID | number may be nil | |
|---|
closeUISoundKitID | number may be nil | |
|---|
id | number | |
|---|
description | string | |
|---|
header | string | |
|---|
choiceArtID | number | |
|---|
desaturatedArt | bool | |
|---|
disabledOption | bool | |
|---|
hasRewards | bool | |
|---|
rewardInfo | PlayerChoiceOptionRewardInfo | |
|---|
uiTextureKit | textureKit | |
|---|
maxStacks | number | |
|---|
buttons | PlayerChoiceOptionButtonInfo[] | |
|---|
widgetSetID | number may be nil | |
|---|
spellID | number may be nil | |
|---|
rarity | PlayerChoiceRarity may be nil | |
|---|
typeArtID | number may be nil | |
|---|
headerIconAtlasElement | string may be nil | |
|---|
subHeader | string may be nil | |
|---|
consolidateWidgets | bool | |
|---|
currencyId | number | |
|---|
name | string | |
|---|
currencyTexture | number | |
|---|
quantity | number | |
|---|
isCurrencyContainer | bool | |
|---|
itemId | number | |
|---|
name | string | |
|---|
quantity | number | |
|---|
factionId | number | |
|---|
quantity | number | |
|---|