Difference between revisions of "GetSteamAchievement"

From The Official Visionaire Studio: Adventure Game Engine Wiki
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed tbl-ds">
+
==getSteamAchievement==
<span>Command History</span>
 
<div class="mw-collapsible-content">
 
<div class="alt-bg">Available since v3.7</div>
 
</div></div>
 
  
 +
WARNING: has been removed with 4.2 use
 +
#REDIRECT [[GetGameClientAchievement]]
 +
instead
  
Gets current state of a steam achievement!
 
<div class="toccolours mw-collapsible mw-collapsed tbl-ds">
 
<span class="bold">Additional Info</span>
 
<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>
 
</div></div>
 
  
 +
<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>
-- to do!
+
===Arguments===
</syntaxhighlight>
+
====apiName====
 
+
:'''"string"''' - The name of the requested achievement. This is the API name specified in the steam account.
 
+
===Flags===
 
+
===Return Values===
<span class="bold underline">Arguments</span>
+
;achievement
 
+
:True/false depending if the achievement is set or not, false if the operation failed.
<span class="bold">apiName</span>: "string" <br/>
+
===Examples===
The name of the requested achievement (this is the API name specified in the steam account for your game)
+
None.
 
 
 
 
<span class="bold underline">Flags</span>
 
 
 
none
 
 
 
 
 
<span class="bold underline">Return</span>
 
 
 
<span class="bold">achievement</span> <br/>
 
True/false depending if the achievement is set or not, false if the operation failed
 
{{i18n|GetSteamAchievement}} <br/>
 
{| class="tbl-ds"
 
|-
 
|<span class="bold">Relevant Pages</span>: [[GetSteamStat|getSteamStat]] - [[SetSteamAchievement|setSteamAchievement]] - [[SetSteamStat|setSteamStat]]
 
|}
 

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.