'GetGlobal' function (EN) - Archie-osu/ProjectDELTA GitHub Wiki

GetGlobal function

Returns a game global

Syntax

<RValue> GetGlobal(
    <string> GlobalName
);

Parameters

ObjectName

Type: String

The name of the global. Examples: gold, lv.

Return Value

Type: RValue

A copy of the global.

To apply your changed copy into the game, see the SetGlobal function.

Example

local rvGold = GetGlobal("gold"); -- Get the global "gold" and store it in the "rvGold" variable
print(rvGold.realval); -- Print the real value onto the screen.
⚠️ **GitHub.com Fallback** ⚠️