GetSteamStat: Difference between revisions
From The Official Visionaire Studio: Adventure Game Engine Wiki
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
Returns the | Returns the requested steam stat! | ||
<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> | <div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> | ||
<b>Additional Info</b> | <b>Additional Info</b> | ||
| Line 17: | Line 16: | ||
Syntax: | Syntax: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
getSteamStat(apiName) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 23: | Line 22: | ||
Example: | Example: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
n/a | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 41: | Line 29: | ||
<b><u>Arguments</u></b> | <b><u>Arguments</u></b> | ||
apiName: "string" <br/> | |||
The name of the requested stat (this is the API name specified in the steam account for your game) | |||
Flags: none | |||
Return: stat <br/> | |||
The integer value of the | The integer value of the stat or -1 if the stat could not be retrieved | ||
{{i18n| | {{i18n|GetSteamStat}} | ||
Revision as of 18:26, 11 March 2013
Command History
Available since v3.7
Returns the requested steam stat!
Additional Info
This command will only work if the steam_api library was included (& successfully loaded) & if a steam account for your game exists!
Syntax:
getSteamStat(apiName)
Example:
n/a
Arguments
apiName: "string"
The name of the requested stat (this is the API name specified in the steam account for your game)
Flags: none
Return: stat
The integer value of the stat or -1 if the stat could not be retrieved