Skip to content

Field manual / Level editor

Root: the core

No package; usable in any code.

Summary

printWrites each argument to the engine log along with the name of the calling object.
strThe value as text, for string concatenation: a number as a string variable would take it (5 → "5", 2.5 → "2.500000"), true/false, nil → "nil", a reference — the object's name, a list or dictionary — as written ([1, "a"]).
EqualsIgnoreCaseTrue if the strings are equal ignoring case (Latin letters).

Functions

print(string) → int

Classic: print

Writes each argument to the engine log along with the name of the calling object. Returns 0.

str(any) → string

OpenGorky onlyClassic: str

The value as text, for string concatenation: a number as a string variable would take it (5 → "5", 2.5 → "2.500000"), true/false, nil → "nil", a reference — the object's name, a list or dictionary — as written ([1, "a"]).

EqualsIgnoreCase(string a, string b) → bool

OpenGorky onlyClassic: EqualsIgnoreCase

True if the strings are equal ignoring case (Latin letters). == in OG Script is case-sensitive; in Classic this kind of comparison is done by s_stricmp.