GameProgress Lua API

From Off Grid Wiki
Revision as of 18:04, 19 November 2019 by Rich (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

GameProgress

Description

The GameProgress api allows the modder to control and query the state of the players game progress

Functions

GetValue

GameProgress.GetValue(key)

Expected parameter types

Name Type
key string

Description: Returns a value from the game progress by key, empty string if it doesn't exist

Returns: string

SetValue

GameProgress.SetValue(key, value, overwrite)

Expected parameter types

Name Type
key string
value string
overwrite bool (optional)

Description: Sets a value in the game progress

Returns: Nothing

HasKey

GameProgress.HasKey(key)

Expected parameter types

Name Type
key string

Description: Does the specified key exist?

Returns: bool


This file is auto generated, please don't edit manually!

Docs last hacked together on: 15/11/2019 14:59