Common Data Functions

Return to Functions

SetDefaultCommonDataArea

    Arguments:
        1) string: str

Sets the name of the default common data area to the specified string.

SetCommonData

    Arguments:
        1) string: key
        2) any: value

Maps the given key to the given value in the default common data area.
The value can be returned by using GetCommonData with the corresponding key.

GetCommonData

    Arguments:
        1) string: key
        2) any: defaultValue
    Return Type:
        any

Returns the value associated with the given key in the default common data area, or defaultValue if no mapping exists.

ClearCommonData

Removes all of the common data in the default common data area.

DeleteCommonData

    Arguments:
        1) string: key

Removes the common data mapping with the specified key from the default common data area.

SetAreaCommonData

    Arguments:
        1) string: area
        2) string: key
        3) any: value

Maps the given key to the given value in the specified common data area.
The value can be returned by using GetAreaCommonData with the corresponding area and key.

GetAreaCommonData

    Arguments:
        1) string: area
        2) string: key
        3) any: defaultValue
    Return Type:
        any

Returns the value associated with the given key in the specified common data area, or defaultValue if no mapping exists.

ClearAreaCommonData

    Arguments:
        1) string: area

Removes all of the common data in the specified area.

DeleteAreaCommonData

    Arguments:
        1) string: area
        2) string: key

Removes the common data mapping with the specified key from the specified common data area.

CreateCommonDataArea

    Arguments:
        1) string: area

Creates a common data area with the provided area name, in which various common data can be stored.

CopyCommonDataArea

    Arguments:
        1) string: destArea
        2) string: srcArea

Copies the common data in the source area to the destination area.

IsCommonDataAreaExists

    Arguments:
        1) string: area
    Return Type:
        bool

Returns true if the area name corresponds to an existing common data area, otherwise returns false.

GetCommonDataAreaKeyList

    Return Type:
        string array

Returns an array of all common data area names.

GetCommonDataAreaKeyList

    Arguments:
        1) string: area
    Return Type:
        string array

Returns an array of the keys in the specified area.

SaveCommonDataAreaA1

    Arguments:
        1) string: area
    Return Type:
        bool

Saves everything in the specified common data area to a data file.
Returns true if successful and false if the operation failed.

LoadCommonDataAreaA1

    Arguments:
        1) string: area
    Return Type:
        bool

Loads everything in the specified common data area from the saved data file.
Returns true if successful and false if the operation failed.

SaveCommonDataAreaA2

    Arguments:
        1) string: area
        2) string: path
    Return Type:
        bool

Saves everything in the specified common data area to a data file at the specified path.
Returns true if successful and false if the operation failed.

LoadCommonDataAreaA2

    Arguments:
        1) string: area
        2) string: path
    Return Type:
        bool

Loads everything in the specified common data area from the saved data file at the specified path.
Returns true if successful and false if the operation failed.

SaveCommonDataAreaToReplayFile

    Arguments:
        1) string: area
    Return Type:
        bool

Saves the specified common data area to the replay file.
Returns true if successful and false if the operation failed.
Note: This function should not be called during a replay.

LoadCommonDataAreaFromReplayFile

    Arguments:
        1) string: area
    Return Type:
        bool

Loads everything in the specified common data area from the replay file.
Returns true if successful and false if the operation failed.
Note: This function should not be called during gameplay.