Æli76737 - legacy41592048 (talk | contribs) (Created page with "{{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Returns information about current used fragments for the se...") |
Æli76737 - legacy41592048 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ |
{{wowapi}} __NOTOC__ |
||
<!-- 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 --> |
||
− | Returns information |
+ | Returns the information for a specific race's active artifact. |
− | |||
<!-- 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 --> |
||
+ | artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetActiveArtifactByRace(raceIndex); |
||
− | numFragmentsCollected, numFragmentsAdded, numFragmentsRequired = GetArtifactProgress(); |
||
− | == |
+ | == Arguments == |
<!-- List each argument, together with its type --> |
<!-- List each argument, together with its type --> |
||
+ | ;raceIndex : Integer - Index of the race to pick the artifact from. |
||
⚫ | |||
− | ;numFragmentsCollected : Number - Number of collected fragments for selected artifact. |
||
+ | <!-- List each return value, together with its type --> |
||
− | ;numFragmentsAdded : Number - Number of fragments currently added through keystones for selected artifact. |
||
− | ; |
+ | ;artifactName : String - The name of the artifact. |
+ | ;artifactDescription : String - The description displayed on the artifact detail page. Only visible after completion for rare artifacts. |
||
− | |||
+ | ;artifactRarity : Integer - The rarity of the artifact, 0 for Common and 1 for Rare. |
||
⚫ | |||
+ | ;artifactIcon : String - The path to the artifact's icon texture. |
||
− | <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> |
||
+ | ;hoverDescription : String - The description shown in the tooltip when hovering over the completed artifact. Not visible before the artifact is completed. |
||
− | My selected Project requires 45 fragments, i have 22 fragments and a [[Keystone]] slot which i do not use. |
||
+ | ;keystoneCount : Integer - The number of [[Keystone]] slots this artifact has. Only visible when this is the in progress artifact. |
||
− | <big>'''Result'''</big> |
||
+ | ;bgTexture : String - The path to the artifact's background texture. Only displayed when the artifact is rare. |
||
− | 22 0 45 |
||
+ | ;firstCompletionTime : Integer - The first time the artifact was ever completed, in the same format as time(). |
||
− | The same project, this time the [[Keystone]] slot is used. |
||
+ | ;completionCount : Integer - The number of times this artifact has been completed. |
||
− | <big>'''Result'''</big> |
||
− | 22 12 45 |
||
− | |||
− | <!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. --> |
||
+ | == Details == |
||
− | The following functions are getting pointed to the current nightelf-project (raceIndex 4) |
||
+ | : The formatting used in the US client for the display of the firstCompletionTime tooltip is "%m/%d/%y %I:%M %p". You can view this formatting using the date() function and the firstCompletionTime. |
||
== Also See == |
== Also See == |
||
⚫ | |||
− | : [[API SocketItemToArtifact|SocketItemToArtifact]]() |
||
− | : [[API |
+ | : [[API GetSelectedArtifactInfo|GetSelectedArtifactInfo]](); |
− | : [[API CanItemBeSocketedToArtifact|CanItemBeSocketedToArtifact]](itemID) |
||
⚫ | |||
− | : [[API GetSelectedArtifactInfo|GetSelectedArtifactInfo]]() |
||
− | : [[API GetArtifactProgress|GetArtifactProgress]]() |
||
<noinclude>[[ru:Справка:Статьи о функциях API/Предварительная загрузка]]</noinclude> |
<noinclude>[[ru:Справка:Статьи о функциях API/Предварительная загрузка]]</noinclude> |
Revision as of 08:02, 3 March 2011
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the information for a specific race's active artifact.
artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetActiveArtifactByRace(raceIndex);
Arguments
- raceIndex
- Integer - Index of the race to pick the artifact from.
Returns
- artifactName
- String - The name of the artifact.
- artifactDescription
- String - The description displayed on the artifact detail page. Only visible after completion for rare artifacts.
- artifactRarity
- Integer - The rarity of the artifact, 0 for Common and 1 for Rare.
- artifactIcon
- String - The path to the artifact's icon texture.
- hoverDescription
- String - The description shown in the tooltip when hovering over the completed artifact. Not visible before the artifact is completed.
- keystoneCount
- Integer - The number of Keystone slots this artifact has. Only visible when this is the in progress artifact.
- bgTexture
- String - The path to the artifact's background texture. Only displayed when the artifact is rare.
- firstCompletionTime
- Integer - The first time the artifact was ever completed, in the same format as time().
- completionCount
- Integer - The number of times this artifact has been completed.
Details
- The formatting used in the US client for the display of the firstCompletionTime tooltip is "%m/%d/%y %I:%M %p". You can view this formatting using the date() function and the firstCompletionTime.
Also See
- GetActiveArtifactByRace(raceIndex, artifactIndex);
- GetSelectedArtifactInfo();
ru:Справка:Статьи о функциях API/Предварительная загрузка