Global Command: getGameClientStat

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 11:16, 19 May 2023 by EK (talk | contribs) (Created page with "Returns the requested game client stat. ''Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exists...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the requested game client stat.

Note: this command only works, if the Steam API/GOG Galaxy library was loaded and if a Steam/GOG Galaxy account for your game exists.

Related functions getGameClientAchievement | getProperty | initGameClient | resetGameClientStats | setGameClientAchievement | setGameClientStat


Syntax

getGameClientStat(apiName)


Parameters

Parameter Type Description
apiName string The name of the requested stat. This is the API name specified in the Steam/GOG Galaxy account.


Return values

Type Description
integer The value of the stat or -1, if the stat could not be retrieved.


Examples

Example 1: Get game client stat.

getGameClientStat("stat_progress")