Difference between revisions of "GetSteamAchievement"

From The Official Visionaire Studio: Adventure Game Engine Wiki
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%">
+
==getSteamAchievement==
<b>Command History</b>
 
<div class="mw-collapsible-content">
 
<div style="background:#ebebeb" width="100%">Available since <span style="color:orange">v3.7</span></div>
 
</div></div>
 
  
 +
WARNING: has been removed with 4.2 use
 +
#REDIRECT [[GetGameClientAchievement]]
 +
instead
  
Gets current state of a steam achievement!
 
{| class="mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"
 
! Additional Info
 
|-
 
|
 
This command will only work if the steam_api library was included (& successfully loaded) & if a steam account for your game exists!
 
|}
 
  
 +
<div class="command-min-version-info">Available since: <span class="command-min-version">v3.6</span></div>
  
Syntax:
+
<div class="command-doc">Gets current state of an achievement.
<syntaxhighlight>
 
getSteamAchievement(apiName)
 
</syntaxhighlight>
 
  
 +
Note: this command only works if the steam_api library was loaded and if a steam account for your game exists.</div>
  
Example:
+
Lua Syntax:
<syntaxhighlight>
+
<pre class="command-syntax">getSteamAchievement(apiName)</pre>
n/a
+
===Arguments===
</syntaxhighlight>
+
====apiName====
 
+
:'''"string"''' - The name of the requested achievement. This is the API name specified in the steam account.
 
+
===Flags===
 
+
===Return Values===
<b><u>Arguments</u></b>
+
;achievement
 
+
:True/false depending if the achievement is set or not, false if the operation failed.
apiName: "string" <br/>
+
===Examples===
The name of the requested achievement (this is the API name specified in the steam account for your game)
+
None.
 
 
Flags: none
 
 
 
Return: achievement <br/>
 
True/false depending if the achievement is set or not, false if the operation failed
 
{{i18n|GetSteamAchievement}}
 

Latest revision as of 22:01, 30 April 2015

getSteamAchievement

WARNING: has been removed with 4.2 use

  1. REDIRECT GetGameClientAchievement

instead


Available since: v3.6
Gets current state of an achievement. Note: this command only works if the steam_api library was loaded and if a steam account for your game exists.

Lua Syntax:

getSteamAchievement(apiName)

Arguments

apiName

"string" - The name of the requested achievement. This is the API name specified in the steam account.

Flags

Return Values

achievement
True/false depending if the achievement is set or not, false if the operation failed.

Examples

None.