Difference between revisions of "SetSteamStat"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> <b>Command History</b> <div class="mw-collapsible-co...") |
|||
Line 2: | Line 2: | ||
<b>Command History</b> | <b>Command History</b> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | Available since <span style="color: | + | <div style="background:#ebebeb" width="100%">Available since <span style="color:orange">v3.7</span></div> |
</div></div> | </div></div> | ||
Sets the specified steam stat to the given value! | Sets the specified steam stat to the given value! | ||
− | + | <div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> | |
− | + | <b>Additional Info</b> | |
− | + | <div class="mw-collapsible-content"> | |
− | + | <div>This command will only work if the steam_api library was included (& successfully loaded) & if a steam account for your game exists!</div> | |
− | This command will only work if the steam_api library was included (& successfully loaded) & if a steam account for your game exists! | + | </div></div> |
− | + | ||
Syntax: | Syntax: | ||
Line 18: | Line 18: | ||
setSteamStat(apiName, value) | setSteamStat(apiName, value) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
Example: | Example: | ||
Line 23: | Line 24: | ||
n/a | n/a | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
Revision as of 18:45, 7 March 2013
Command History
Available since v3.7
Sets the specified steam stat to the given value!
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:
setSteamStat(apiName, value)
Example:
n/a
Arguments
apiName: "string"
The name of the stat to set (this is the API name specified in the steam account for your game)
Flags: none
Return: success
True if the value was set successfully, false if the operation failed!