WoW:API GetInstanceDifficulty: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Separated numbers more clearly, tweaked "details" wording)
m (Move page script moved page API GetInstanceDifficulty to API GetInstanceDifficulty without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
== Returns ==
== Returns ==
:; difficulty : Number - The difficulty of the instance
:; difficulty : Number - The difficulty of the instance
:;: '''1''' → 5 or 10 players normal
:;: '''1''' → 5 or 10 players normal (also 40 player raids)
:;: '''2''' → 5 players heroic / 25 players normal
:;: '''2''' → 5 players heroic / 25 players normal
:;: '''3''' → 10 players heroic
:;: '''3''' → 10 players heroic

Latest revision as of 04:46, 15 August 2023

WoW API < GetInstanceDifficulty

Returns the difficulty for instance you are currently in.

difficulty = GetInstanceDifficulty()

Arguments[edit]

None


Returns[edit]

difficulty
Number - The difficulty of the instance
1 → 5 or 10 players normal (also 40 player raids)
2 → 5 players heroic / 25 players normal
3 → 10 players heroic
4 → 25 players heroic


Details[edit]

Returns 1 if not in an instance.

3.2.0: 3 (epic) removed and added 3-4 for new split between normal/heroic and 10/25