Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns all state IDs.
[stateID1, stateID2, stateID3, ... =] C_PetBattles.GetAllStates([stateEnv])
Arguments[]
- stateEnv
- Optional Table - This table will be filled with all known state IDs, added to the table's index by state name.
Returns[]
- stateID1, stateID2, stateID3, ...
- Optional Numbers(s) - Each return is the number of a different state value type for Pet Battles.
Details[]
You need to use either the returns or the argument. It is highly recommended to never assign this to individual returns as the results are volatile. You should either fill a table by passing the table as an argument or by capturing the function's results entirely within the table like so:
local stateEnv = {C_PetBattles.GetAllStates()}
This function is typically used so that the developer can correlate state IDs (numbers like 125) to state names (strings like "STATE_BIGGLESWORTH_WHISKERS") and/or to use the state IDs in one of the two functions that require them as an argument.
Current Values[]
These are the current stateIDs as of Patch 5.4.1. More may be added to the end of this list in future patches, but it is unlikely any will be removed (based on the large amount of unused stateIDs currently in the below table).
1 STATE_Is_Dead 2 STATE_maxHealthBonus 3 STATE_Internal_InitialHealth 4 STATE_Stat_Kharma 17 STATE_Internal_InitialLevel 18 STATE_Stat_Power 19 STATE_Stat_Stamina 20 STATE_Stat_Speed 21 STATE_Mechanic_IsPoisoned 22 STATE_Mechanic_IsStunned 23 STATE_Mod_DamageDealtPercent 24 STATE_Mod_DamageTakenPercent 25 STATE_Mod_SpeedPercent 26 STATE_Ramping_DamageID 27 STATE_Ramping_DamageUses 28 STATE_Condition_WasDamagedThisTurn 29 STATE_untargettable 30 STATE_Mechanic_IsUnderground 31 STATE_Last_HitTaken 32 STATE_Last_HitDealt 33 STATE_Mechanic_IsFlying 34 STATE_Mechanic_IsBurning 35 STATE_turnLock 36 STATE_swapOutLock 40 STATE_Stat_CritChance 41 STATE_Stat_Accuracy 42 STATE_Passive_Critter 43 STATE_Passive_Beast 44 STATE_Passive_Humanoid 45 STATE_Passive_Flying 46 STATE_Passive_Dragon 47 STATE_Passive_Elemental 48 STATE_Passive_Mechanical 49 STATE_Passive_Magic 50 STATE_Passive_Undead 51 STATE_Passive_Aquatic 52 STATE_Mechanic_IsChilled 53 STATE_Weather_BurntEarth 54 STATE_Weather_ArcaneStorm 55 STATE_Weather_Moonlight 56 STATE_Weather_Darkness 57 STATE_Weather_Sandstorm 58 STATE_Weather_Blizzard 59 STATE_Weather_Mud 60 STATE_Weather_Rain 61 STATE_Weather_Sunlight 62 STATE_Weather_LightningStorm 63 STATE_Weather_Windy 64 STATE_Mechanic_IsWebbed 65 STATE_Mod_HealingDealtPercent 66 STATE_Mod_HealingTakenPercent 67 STATE_Mechanic_IsInvisible 68 STATE_unkillable 69 STATE_Mechanic_IsObject 70 STATE_Special_Plant 71 STATE_Add_FlatDamageTaken 72 STATE_Add_FlatDamageDealt 73 STATE_Stat_Dodge 74 STATE_Special_BlockedAttackCount 75 STATE_Special_ObjectRedirectionAuraID 77 STATE_Mechanic_IsBleeding 78 STATE_Stat_Gender 82 STATE_Mechanic_IsBlind 84 STATE_Cosmetic_Stealthed 85 STATE_Cosmetic_WaterBubbled 87 STATE_Mod_PetTypeDamageDealtPercent 88 STATE_Mod_PetTypeDamageTakenPercent 89 STATE_Mod_PetType_ID 90 STATE_Internal_CaptureBoost 91 STATE_Internal_EffectSucceeded 93 STATE_Special_IsCockroach 98 STATE_swapInLock 99 STATE_Mod_MaxHealthPercent 100 STATE_Clone_Active 101 STATE_Clone_PBOID 102 STATE_Clone_PetAbility1 103 STATE_Clone_PetAbility2 104 STATE_Clone_PetAbility3 105 STATE_Clone_Health 106 STATE_Clone_MaxHealth 107 STATE_Clone_LastAbilityID 108 STATE_Clone_LastAbilityTurn 113 STATE_Special_IsCharging 114 STATE_Special_IsRecovering 117 STATE_Clone_CloneAbilityID 118 STATE_Clone_CloneAuraID 119 STATE_DarkSimulacrum_AbilityID 120 STATE_Special_ConsumedCorpse 121 STATE_Ramping_PBOID 122 STATE_reflecting 123 STATE_Special_BlockedFriendlyMode 124 STATE_Special_TypeOverride 126 STATE_Mechanic_IsWall 127 STATE_Condition_DidDamageThisRound 128 STATE_Cosmetic_FlyTier 129 STATE_Cosmetic_FetishMask 136 STATE_Mechanic_IsBomb 141 STATE_Special_IsCleansing 144 STATE_Cosmetic_Bigglesworth 145 STATE_Internal_HealthBeforeInstakill 149 STATE_resilient 153 STATE_Passive_Elite 158 STATE_Cosmetic_Chaos 162 STATE_Passive_Boss
Patch changes[]
Patch 5.0.4 (2012-08-28): Added.