Difference between revisions of "SetSteamStat"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 31: Line 31:
 
apiName: "string" <br/>
 
apiName: "string" <br/>
 
The name of the stat to set (this is the API name specified in the steam account for your game)
 
The name of the stat to set (this is the API name specified in the steam account for your game)
 +
 +
value: integer (number) <br/>
 +
The included stat will be set to the listed value!
  
 
Flags: none
 
Flags: none

Revision as of 18:49, 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)

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!