Difference between revisions of "SetSteamStat"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 22: Line 22:
 
Example:
 
Example:
 
<syntaxhighlight>
 
<syntaxhighlight>
n/a
+
-- to do!
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 18:50, 3 April 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:

-- to do!


Arguments

apiName: "string"
The name of the stat to set (this is the API name specified in the steam account for your game)

value: integer (number)
The included stat will be set to the listed value!


Flags

none


Return

success
True if the value was set successfully, false if the operation failed!


Relevant Pages: getSteamAchievement - getSteamStat - resetSteamStats - setSteamAchievement