Skip to content
This repository was archived by the owner on Jul 30, 2023. It is now read-only.

'SetGlobal' function (EN)

Archie edited this page May 23, 2021 · 1 revision

SetGlobal function

Sets a game global.

Syntax

<void> SetGlobal(
    <string> GlobalName,
    <RValue> Value
);

Parameters

Name

Type: String

The global name. Examples: gold, lv

Value

Type: RValue

The value you wish to set the global to.

Return Value

Type: void

Example

SetGlobal("gold", RValue(5000)) -- Sets global.gold to 5000.

Clone this wiki locally