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

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.
⚠️ **GitHub.com Fallback** ⚠️