WoW:API GetNumCompletedAchievements: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: {{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Return the total number of Achievements, and number completed. <!--...)
 
m (Move page script moved page API GetNumCompletedAchievements to API GetNumCompletedAchievements without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Return the total number of Achievements, and number completed.  
Return the total number of Achievements or only guild one, and number completed.  
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  total, completed = GetNumCompletedAchievements()
  total, completed = GetNumCompletedAchievements([guildOnly])




== Arguments ==
== Arguments ==
<!-- List each argument, together with its type -->
<!-- List each argument, together with its type -->
:NONE
:;guildOnly: Boolean - True if you want guild achievement only (Default: False)




Line 16: Line 16:
:total, completed <!-- remove this line if it's just one value -->
:total, completed <!-- remove this line if it's just one value -->


:;total: Number - total number of available achievements
:;total: Number - total number of available achievements or guild achievement only
:;completed: Number - total number of completed achievements
:;completed: Number - total number of completed achievements or guild achievement only


== Details ==
== Details ==

Latest revision as of 04:46, 15 August 2023

WoW API < GetNumCompletedAchievements

Return the total number of Achievements or only guild one, and number completed.

total, completed = GetNumCompletedAchievements([guildOnly])


Arguments[edit]

guildOnly
Boolean - True if you want guild achievement only (Default: False)


Returns[edit]

total, completed
total
Number - total number of available achievements or guild achievement only
completed
Number - total number of completed achievements or guild achievement only

Details[edit]

Unknown whether this takes Feats of Strength into account.