# AGENTS.md: writing Bornescript for the Borne Engine

This file tells an AI coding agent how to write correct scripts for a Borne Engine server. It matches engine version 0.1.0. Documentation: https://bornedocs.nullborne.com/. Read it fully before you write or change a script. Do not guess names or behavior that are not here: look them up in the API reference or ask.

## 1. What you are writing

Bornescript is the scripting language of the Borne Engine. It is a C-like language that reads older GS2 scripts and keeps their behavior. Files end in `.bsc`.

A script belongs to one object kind:

| Kind | Folder | Notes |
|------|--------|-------|
| Weapon | `weapons/` | Given to players with `addweapon`. One server instance, plus one client copy per owner |
| Database NPC | `npcs/` | Named, saved variables, placed in a level with a `.toml` file (`level`, `x`, `y`) |
| Class | `classes/` | Shared code. Add it to an object with `join("name")` |
| Level NPC | inside a level file, `NPC ... NPCEND` | One per level |

One file has two halves. Everything before the first line that holds only `//#CLIENTSIDE` runs on the server. Everything after it runs on the client. The two halves are separate programs. The server half never leaves the server.

## 2. The language in one page

- Statements end with `;`. Blocks use `{ }`. Comments are `//` and `/* */`.
- Keywords and function names ignore case. **Variable names are case-sensitive.**
- Values: empty (`null`), number (64-bit float), string (bytes), array, object, function. Plain values convert on demand: `1 == "1"` is true.
- Strings use double quotes only. Join text with `@`; `SPC`, `NL`, and `TAB` join with a space, a new line, or a tab.
- Arrays: `{1, "a", true}`. Index from 0. `{}` is allowed only as the whole right side of an assignment (`temp.a = {};`). There are no object literals.
- Assigning an array copies it. Passing an array to a function does not copy it.
- Writing past the end of an array does nothing. Use `.add(value)` to grow it.
- A non-empty array is false in a condition. Test `if (temp.list != NULL)`.
- `==` ignores case for text and compares numbers within 0.0001. `===` also needs the same kind.
- Numbers print with at most 9 decimals, cut off. Results are limited to 2147483647.
- `%` takes the sign of the right side. Division by zero gives `0`.
- Loops: `for (temp.i = 0; temp.i < 3; temp.i++)`, `while`, `do ... while`, and for-each `for (temp.x : array)`.
- `switch` compares with loose equality and falls through until `break`.
- `try { } catch (temp.err) { } finally { }` and `throw "text";` exist. `temp.err.message` holds the text.
- Functions: `function name(a, b) { return a + b; }`. Missing arguments are empty. Mark the outside interface `public`; only `public` functions can be called from another object.
- Anonymous functions have no closures. A named function is not a value; pass its name as a string.
- `async function` may use `await`. `await` stops only the current function.

```bsc
function onCreated() {
    temp.total = 0;
    for (temp.n : {1, 2, 3, 4}) {
        if (temp.n == 3) {
            continue;
        }
        temp.total += temp.n;
    }
    echo("total " @ temp.total);
    // expect: total 7
}
```

### Variable prefixes

| Prefix | Lives in |
|--------|----------|
| `temp.` | the current function call |
| `this.` | the current object |
| `player.` | the player in scope: who sent the trigger or entered; on the client, the local player |
| `client.` | account flags: saved, client may write |
| `clientr.` | account flags: saved, only the server writes |
| `server.` | server flags: saved, server only |
| `serverr.` | server flags the clients can read |
| `serveroptions.` | the Server Options, read only |

A name with no prefix is looked up as a built-in field, then a `temp.` variable, then a constant, and last as a script-global variable. Avoid script-global variables: write `temp.` or `this.`.

`this.(@"name" @ temp.i)` reads or writes a variable by a computed name.

## 3. Events and timers

Every event runs to completion. A function may stop with `sleep`, `waitfor`, or `await` and let others run.

- `onCreated()` runs when the script loads or reloads.
- `onTimeout()` follows `setTimer(seconds)`. One timer per object. Call `setTimer` again to continue. `setTimer(0)` stops it.
- `scheduleevent(delay, "Name", args...)` runs `onName(args...)` once. `this.cancelevents("Name")` removes them.
- `sleep(seconds)` stops the whole object and drops its timer. `waitfor(obj, "onEvent", timeout)` stops only the calling function.
- `onPlayerLogin(player)` and `onPlayerLogout(player)` run on every server script: database NPCs, NPCs of the loaded levels and weapons. The argument is the player object (`pl.addweapon("Bow")`). Give weapons and join player classes in login.
- `onPlayerEnters()`, `onPlayerTouchsMe()`, `onPlayerChats()`, `onWasHit(obj)` and others come from the engine. Prefer them to polling in a timer loop.
- `onActionServerSide(args...)` receives `triggerserver` from a client. `onActionClientSide(args...)` receives `triggerclient` from the server.

```bsc
// time: 1
function onCreated() {
    this.count = 0;
    setTimer(0.25);
}

function onTimeout() {
    this.count++;
    echo("tick " @ this.count);
    if (this.count < 3) {
        setTimer(0.25);
    }
    // expect: tick 1
    // expect: tick 2
    // expect: tick 3
}
```

## 4. Authoring conventions

Follow all of these. Each one is checked by a tool or by review.

1. **Prefer events to polling.** Use `onPlayerTouchsMe`, `onPlayerEnters`, and similar events instead of checking a condition in a timer loop.
2. **Use the slowest timer that works.** Use 1 second for status updates, and 0.05 seconds only for animation and movement. Stop a loop by not calling `setTimer` again.
3. **Use `temp.` for locals and `this.` for object state.** A name without a prefix that is not a `temp.` variable or a built-in field is a script-global variable, which is easy to leak between events by accident. Checked by `W-SCRIPT-GLOBAL`.
4. **Keep the server in charge.** Do game rules, inventory, and stats on the server side. Write player data that the client may not change to `clientr.`. Validate every `triggerserver` argument.
5. **Keep the client for presentation.** Do pictures, windows, sound, and input after `//#CLIENTSIDE`.
6. **Mark only the outside interface `public`.** Leave helpers as plain functions, or mark them `private` for readability. Other objects cannot call them either way.
7. **Avoid names that collide with the engine.** Do not call a custom method `insert`, `delete`, or `remove`, and do not use `level`, `head`, or `dir` as a field or parameter name. Checked by `W-ARRAY-METHOD-NAME` and `W-RESERVED-NAME`.
8. **Test arrays and objects explicitly.** Write `if (temp.headers != NULL)`, not `if (temp.headers)`. Checked by `W-ARRAY-TRUTHINESS`.
9. **Pass SQL values as parameters.** Put `?` in the statement and the values in the last argument of `requestsql`. Do not build SQL text from player input. Checked by `W-SQL-ESCAPE`.
10. **Do not log secrets.** Never `echo` authorization headers or private response data.
11. **Check lookups.** Test the result of `findnpc`, `findplayer`, and similar functions for `null` before you use it. Checked by `W-UNCHECKED-LOOKUP`.

## 5. Server and client

- Put rules, inventory, stats, SQL, files, and web requests on the server. The client has no file, SQL, or web access.
- Put pictures, windows, sound, and input after `//#CLIENTSIDE`.
- A player can send any trigger with any arguments. Check the count, the kind, the range, and the sender of **every** argument in `onActionServerSide`. Never trust a value from a client.
- Keep data the client may not change in `clientr.` or in server-only `player.` fields.
- A function marked `[S]` in the API digest runs on the server only, and `[C]` on the client only. A server-only function in client code gives `W-UNKNOWN-FUNCTION`.
- A function that a class adds with `join` is not visible to the compiler. Call it as `this.name(...)`.

```bsc norun
// Weapon: the server decides, the client shows.
function onActionServerSide(cmd, amount) {
    if (cmd != "heal" || !(amount in |1, 3|)) {
        return;
    }
    player.health = min(player.health + amount, player.maxhealth);
}

//#CLIENTSIDE
function onKeyPressed(keycode, key) {
    if (key != "h") {
        return;
    }
    triggerserver("gui", this.name, "heal", 1);
}
```

## 6. Limits and the sandbox

- A run of one event may use at most 5,000,000 instructions and 50 ms on the server. Arrays hold 1,000,000 values and strings 16 MiB. A script that goes over a limit is stopped and reported as `R-LIMIT`.
- Files: scripts read only inside the folders of the Server Option `scriptfolders` and write only inside `scriptwritefolders`. Paths with `..` or absolute paths are refused.
- SQL: `requestsql(sql, expectResult, {values})` runs one statement on a SQLite file under `databases/`. Put the values in the last argument and `?` in the statement. Never build SQL from text a player sent.
- Web: `requestcurl(url)` only reaches hosts in the Server Option `httpallowlist`. A failed request sets `error` on the request object and raises nothing. Never `echo` authorization headers or private response data.
- At most 64 pending SQL requests and 32 pending web requests for one object.

```bsc norun
async function onCreated() {
    temp.req = await requestsql("SELECT points FROM scores WHERE player = ?", true, {"ana"});
    if (temp.req.error != "") {
        echo("scores: " @ temp.req.error);
        return;
    }
    echo(temp.req.rows.size());
}
```

## 7. Provisional behaviors

The engine had to choose these and no older server has confirmed them. They may change. Do not depend on them without a test.

- OQ-LANG-1: Character encoding of legacy strings: are strings byte strings, and how is text displayed (UTF-8, Windows-1252)? Do `.length()`, `.charat()`, `.pos()` count bytes? Now: Resolved by probes: byte strings (`"é".length()` is 2 in a UTF-8 file); display decodes UTF-8 and falls back to Windows-1252 per invalid sequence
- OQ-LANG-2: Is `//#CLIENTSIDE` matched case-insensitively and with surrounding whitespace? Now: Resolved by probes: only the exact line `//#CLIENTSIDE` splits (§1.4); other spellings are plain comments
- OQ-LANG-3: Are keywords case-insensitive (`Function`, `IF`)? Now: Resolved by probes: legacy keywords, prefixes, script functions, and string and array methods are exact-case; Borne now reports a compile error for the wrong case (§2.3)
- OQ-LANG-4: Are `5.` and hex literals `0x1F` valid? Now: Resolved by probes: yes (`5.` is 5, `0x1F` is 31, `.5` is 0.5)
- OQ-LANG-5: Exact 32-bit saturation edges: negative overflow, division, literals above the limit, `*`. Now: Resolved by probes: every result clamps to ±2147483647 (§7.1); operands and literals do not
- OQ-LANG-6: Unknown escapes and single-quoted strings. Now: Resolved by probes: legacy rejects unknown escapes at compile time; Borne keeps `\x` gives `x` as an extension (§14); single quotes are character literals, read as strings
- OQ-LANG-7: Does `%=` exist? Now: Resolved by probes: yes
- OQ-LANG-8: Precedence of `&`, `. Now: `, `in` | Resolved by probes: `&` and ` | ` share the tightest binary level; `in` sits between concatenation and the comparisons (§3.1)
- OQ-LANG-9: When do top-level statements run relative to `onCreated`, and on each join? Now: Resolved by probes: before `onCreated`, on each instantiation or join; a class joined at top level runs after the host's top level (§3.7)
- OQ-LANG-10: Formatting of very large numbers, infinity, NaN. Now: Resolved by probes: clamp to ±2147483647, 9 digits truncated, nines carry (§5.1); NaN prints `0`
- OQ-LANG-11: String-to-number rule (`"42abc"`, `"1,2" + 1`, objects). Now: Resolved by probes: strtod prefix (§5.2, `-1` without one); objects are `0`
- OQ-LANG-12: List-string edge cases (`","`, `",a"`, `"a,b,,"`, tabs, empty elements on output). Now: Resolved by probes: `","` is the empty list; one trailing empty element is dropped; tabs are not spaces; empty elements are written as `""` (§5.5, §5.7)
- OQ-LANG-13: String form of an unnamed object. Now: Resolved by probes: `unknown_object` (§5.8)
- OQ-LANG-14: Do unprefixed names resolve to global named objects, and in which order? Now: Resolved by probes: yes, a named object (not a `TStaticVar`) comes before a script-global of its name (§6.3 step 5)
- OQ-LANG-15: Do joined classes share the host's script-global variables? Now: Resolved by probes: yes, one table per object
- OQ-LANG-16: Unprefixed assignments to non-built-in names inside an initializer block. Now: Resolved by probes: ordinary writes (temp, then script-global); only `this.` reaches the new object (§6.5)
- OQ-LANG-17: Dots inside dynamic names and `makevar` names. Now: Resolved by probes: literal in `(@...)`; `makevar` walks the dots (§6.8)
- OQ-LANG-18: Division and modulo by zero. Now: Resolved by probes: `0`, no report
- OQ-LANG-19: Loose equality between a number and a non-numeric string (`"abc" == 0`). Now: Resolved by probes: the string converts by §5.2 (`"abc"` is `-1`), so `"abc" == 0` is false (§7.3)
- OQ-LANG-20: Do `&&` and `. Now:  | ` short-circuit, and what do they return? | Resolved by probes: short-circuit; return `1` or `0`
- OQ-LANG-21: Truthiness of numeric strings other than `"0"` (`"0.0"`, `" 0"`). Now: Resolved by probes: false when the §5.2 value is `0`
- OQ-LANG-22: `params` on the client side. Now: Same as server
- OQ-LANG-23: Does a plain call find a function value stored in a script-global variable? Now: Resolved by probes: legacy reports the function as not found; Borne finds the value after built-ins as an extension (§8.4, §14)
- OQ-LANG-24: Lookup order between own functions and joined classes, and among classes. Now: Resolved by probes: own first, then classes in join order, first joined first
- OQ-LANG-25: Visibility inside `with (otherObj)`: is a call to a non-public function of `otherObj` "from outside"? Now: Resolved by probes: yes; a plain call inside `with` looks only at the code owner (§8.4)
- OQ-LANG-26: `with` on an empty object: skip the block or run it with empty `this`? Now: Resolved by probes: the block runs, without a report (§9.6)
- OQ-LANG-27: Can `TStaticVar` be named with `new TStaticVar("Name")`? Now: Resolved by probes: yes
- OQ-LANG-28: Exact `import` syntax and constructor naming. Now: §10.2
- OQ-LANG-29: Trailing comma in array literals. Now: Resolved by probes: allowed (`{1, 2,}` has size 2)
- OQ-LANG-30: Index assignment on empty variables and list-string variables. Now: Resolved by probes: no effect; convert to array then assign
- OQ-LANG-31: Are nested arrays copied deeply on assignment? Now: Resolved by probes: yes
- OQ-LANG-32: Per-kind continuation behavior of runtime errors. Now: Resolved by probes: the §12.2 table; `try`/`throw` are Borne extensions (§14)
- OQ-LANG-33: Member store into an unset variable; `clearvars` and `getdynamicvarnames` on one. Now: Resolved by probes: the variable becomes an object (§6.13)
- OQ-LANG-35: `unset(name)` with its value used (legacy returns 0 and clears nothing). Now: Borne clears the variable in both forms
- OQ-LANG-34: Which of the forms of §2.5 (multi-line strings) and §3.10 the legacy server accepts, and what the unprobed ones do. Now: Accepted as the Zodiac scripts use them; probe when the RC is reachable
- OQ-STD-1: Structure of the reference definitions file: does it give owner types for members? Now: Phase 3 inspects it and adds owners where missing
- OQ-STD-2: Parameter order and results of `strpos`, `strcmp`, `contains`. Now: Resolved by probes: `strcmp` gives -1/0/1; `contains` is case-insensitive list membership; `strpos` is a Borne extension, legacy uses `.pos` (§2.1)
- OQ-STD-3: `wraptext` width unit. Now: Characters
- OQ-STD-4: Case sensitivity of `.starts` and `.ends`. Now: Resolved by probes: case-insensitive
- OQ-STD-5: `format`: `-` flag, unknown conversions. Now: Resolved by probes: left-justify; an unknown conversion is dropped and uses no value
- OQ-STD-6: `tokenize`: empty parts for consecutive delimiters; tabs as default delimiters. Now: Resolved by probes: non-space delimiters keep empty parts, space delimiters collapse; tabs are not default delimiters (§2.4)
- OQ-STD-7: `round` of halves. Now: Resolved by probes: legacy servers have no `round` (clients use `Math.round`); Borne keeps it as an extension, away from zero
- OQ-STD-8: `getdir` ties and `getangle` sign. Now: Resolved by probes: `dy >= 0` ties give 2, so `getdir(0, 0)` is 2; `getangle` is in [0, 2π) (§3)
- OQ-STD-9: `.remove` first or all; `.insert` out of range. Now: Resolved by probes: first; append; a negative index appends
- OQ-STD-10: Case sensitivity of text sorts. Now: Resolved by probes: case-insensitive text order, numbers too; lowercase first on a tie (§5.1)
- OQ-STD-11: `sortbyvalue` `key` and `keyType`. Now: Resolved by probes: `sortbyvalue(member, type, ascending)` (§5.1)
- OQ-STD-12: Legacy string-list functions. Now: Resolved by probes: the first argument is the variable name as a string; `deletestring(var, index)`, `removestring(var, string)` (§5.2)
- OQ-STD-13: `isobject(name)`. Now: Resolved by probes: a named NPC, weapon, or `TStaticVar` is `1`, a class name or an unknown name `0` (§6.2)
- OQ-STD-14: Order of `getstringkeys` results. Now: Resolved by probes: sorted
- OQ-STD-15: `savevarstoarray(true)`. Now: Resolved by probes: `true` sorts by name; `false` keeps insertion order
- OQ-STD-16: JSON output of empty values. Now: Resolved by probes: `""` stays `""`; a variable set to null holds `0` and is written as `0` (§7.1)
- OQ-STD-17: `findpathinarray` parameter meanings. Now: §9.1
- OQ-STD-18: `trace` versus `echo`; `toall` presentation. Now: Resolved by probes: same as echo
- OQ-STD-19: Legacy calling form of `loadlines`, `loadstring`, `savelines`, `savestring`. Now: Both forms exist for `loadlines` and `loadstring` (verified); what the method form writes is still open
- OQ-STD-20: `findfiles` pattern syntax. Now: `*` wildcard within one folder
- OQ-STD-21: `dbQuery`, `executeQuery`, `dbLastError`. Now: §13.4
- OQ-STD-22: `TCURLRequest.quick`. Now: Short timeout
- OQ-STD-23: `converttimetostring` and `formattimestring` formats. Now: Resolved by probes: ctime format (`Tue Nov 14 22:13:20 2023`) in the server's time zone (Server Options `time_zone_offset`); `strftime` style
- OQ-STD-24: Growing methods on an empty variable. Now: Create the array; a number or object receiver does not grow
- OQ-STD-25: `.positions(sub)` overlap and empty `sub`. Now: Overlapping; empty array
- OQ-STD-26: `aes_encrypt` padding, key and IV lengths. Now: CBC, null-byte fill to 16, key 16/24/32, IV 16
- OQ-STD-27: `des_encrypt` mode, key use, partial block. Now: ECB, first 8 key bytes, partial block unchanged
- OQ-STD-28: Vector text: print threshold, short matrix, gimbal pole. Now: `0.00001`; identity; y angle `0` (§17.2)
- OQ-STD-29: `convertutf8tolatin` for U+2018 to U+201F and above U+00FF. Now: Plain quotes; low byte
- OQ-STD-40: Unit of `getmemoryusage`. Now: Bytes of the script heap
- OQ-STD-43: `MRandomGenerator` algorithm and range. Now: 31-bit linear generator seeded by `seed`
- OQ-STD-44: `getvarnames` built-in names and `getfunctions` fields. Now: §17.4.1
- OQ-STD-45: `forceaboveterrain` on a flat terrain. Now: Particles never go below height 0
- OQ-STD-46: Music volume channels, note pitch scale, `play3d` attenuation. Now: Mean of both values; equal temperament; plain position, no attenuation
- OQ-STD-47: `getplatform` names, text measuring units, `wraptext2` break rules. Now: OS name; whole pixels with built-in fonts; spaces and listed characters (§17.5)
- OQ-STD-48: Screenshot folder and file naming. Now: `screenshots/` in the config area, plain `.png` name (§17.5.4)
- OQ-STD-49: Where the legacy client keeps script-written files, and the `loadfolder` result format. Now: Client writes go to `scriptfiles/`, names without a folder (design, §12.5)
- OQ-VM-1: During `sleep`, are events other than scheduled events queued, dropped, or run? Does a `setTimer` during the sleep work? Now: Resolved by probes: triggers and scheduled events run during the sleep; a `setTimer` during the sleep, or a second `sleep` of the object, drops the sleeping function (one timer per object, §6.1)
- OQ-VM-2: What does `waitfor` return when the event arrives? Now: Resolved by probes: `1`; the event is taken, so the object's own handler does not run (§6.2)
- OQ-VM-3: Meaning of `waitfor` timeout `0` or omitted. Now: Resolved by probes: `0` returns `0` at once
- OQ-VM-4: Legacy loop limit (`maxlooplimit`) value and scope; should the engine also count loop iterations? Now: Resolved by probes: legacy stops a run after about 10,000 loop iterations, nested loops counted together; Borne counts backward jumps with a limit of 1,000,000 per run (§8)
- OQ-WORLD-1: Character box size and origin. Now: Resolved (Ruan, 2026-10-26, legacy layout): the gani area is 48x48 px (3x3 tiles) from `x, y`; the body is 2x2 tiles at `x + 0.5 .. x + 2.5`, `y + 1 .. y + 3` (center `x + 1.5, y + 2`); the walking footprint is its lower half, `y + 2 .. y + 3`
- OQ-WORLD-2: Which tile layer gives the tile type. Now: Highest layer with a tile
- OQ-WORLD-3: Does `onwall` include NPC shapes? Now: Yes
- OQ-WORLD-4: `noplayeronwall` meaning. Now: Player ignores walls
- OQ-WORLD-5: Sides of `addtiledef` and `addtiledef2`. Now: Server calls replicate; client calls are local
- OQ-WORLD-6: Is `onLevelLoaded` raised on the level's NPCs? Now: Yes
- OQ-WORLD-7: Player coordinates and `player.level` on gmaps; names of world-coordinate fields. Now: Sub-level relative; `gmapx`, `gmapy`
- OQ-WORLD-8: Script-visible type names of players and NPCs (`objecttype()`). Now: `TServerPlayer`/`TPlayer`, `TServerNPC`/`TClientNPC`
- OQ-WORLD-11: Behavior of `TParticleObject`, `TInputBuffer`, `TNamedObject`. Now: Stubs until confirmed
- OQ-WORLD-12: Does `findnpc` find named level NPCs? Are names case-insensitive? Now: Yes; yes
- OQ-WORLD-13: Receivers and client forms of `addweapon`, `removeweapon`, `hasweapon`. Now: Server, on the player in scope
- OQ-WORLD-14: Does selecting a weapon hide `-` weapons? Now: Yes
- OQ-WORLD-15: `onDestroy` versus `onRemoved`. Now: §9.2
- OQ-WORLD-16: Receivers and arguments of `onPlayerLogin` and `onPlayerLogout`. Now: Every server script (DB NPCs, level and local NPCs, weapons), with the player object *(decided by the user)*
- OQ-WORLD-17: `onRCChat` routing. Now: Unhandled `/` commands to DB NPCs
- OQ-WORLD-18: `findobject` and `callnpc`. Now: Any named object; event call by NPC id
- OQ-WORLD-19: `setshape` types and default blocking of NPCs with images. Now: Type `1` only; image size blocks
- OQ-WORLD-20: Does `onPlayerTouchsMe` repeat while touching? Now: Only when contact starts again
- OQ-WORLD-21: `move` option bits, `warpto` limits, `message` versus `chat`. Now: §11.4
- OQ-WORLD-22: `canwarp` and `canwarp2` effect. Now: Follows a fan-made game server, not a probe
- OQ-WORLD-23: Projectile hit events. Now: §12.1
- OQ-WORLD-25: Walking speed, hole behavior. Now: §13
- OQ-WORLD-26: Grabbing and lifting tile objects. Now: Not part of the engine
- OQ-WORLD-28: Sides and effect of `loadmap`. Now: §3.5a
- OQ-WORLD-27: Unstick command and its options. Now: RC and chat command `/unstickme` warps to the configured place
- OQ-WORLD-29: What `players` holds outside level NPCs. Now: Every online player
- OQ-WORLD-30: Does a server NPC hold `colors` as a five-element array before `showcharacter`, and with which defaults? Now: `showcharacter` creates it with orange, white, blue, red, black; before that an index write does nothing
- OQ-WORLD-31: Does reading `player.colors[0]` give a name or an index, and is `player.colors[0] = "orange";` allowed on both sides? Now: An index; names and indexes are both written, on the server and in client scripts
- OQ-WORLD-34: What the optional third argument of `getnearestplayers(x, y, n)` does. Now: Accepted and ignored: probes with `1` and `100` and two players on the same point gave `{0, 1}` both times
- OQ-WORLD-35: `getmappartfile(col, row)` of a level inside a gmap (the legacy probe level was in none). Now: The name at the cell, empty off the map, fractions floored
- OQ-WORLD-202: Arguments of `setz`. Now: `setz` takes the corner heights top left, top right, bottom left, bottom right
- OQ-WORLD-203: What the map and tile definition functions return. Now: `getmapx` and `getmapy` give the column and row of the level in the world map, `-1` when it is not on it; `removetiledefs(start)` forgets the definitions and overlays whose prefix starts with `start`; `gettilesettype` is the number of the tile type table
- OQ-WORLD-205: Level flags. Now: `tilelayercount` runs from 1 to 8
- OQ-WORLD-207: Projectile list, `reflectarrow`, and `removearrow`. Now: Indexes are positions among the projectiles in flight in the level, in shooting order; reflecting adds half a turn to the angle; a shot of another player has no `fromplayer` and its `fromplayerid` is `-1`
- OQ-WORLD-209: Client-side NPC fields (`layer`, `sprite`, `isblockingprojectiles`, `save`, `peltwith*`) and the local calls. Now: Local to the client and never sent; `isblockingprojectiles` true; `peltwith*` false; `save` ten zeros; `timereverywhere`, `setbow`, and the `canbe` marks are kept and not acted on
- OQ-WORLD-210: Tile layer style. Now: Red, green, blue, and alpha multiply the tiles; x and y shift the layer in pixels; z is kept and not drawn; `offset` is the text `x,y,z`
- OQ-WORLD-211: Gani objects. Now: `player.ani` reads as the gani name and compares equal to it; changes to `loop`, `continuous`, and `setbackto` apply to every later play on this client; `movie` is a flag set by the script over the file's own answer
- OQ-WORLD-212: Scene variables. Now: `gravity` 9.8, `waterheight` 0, `watercolorflags` 4 (six bits), `preloadleveldefaulttile` 0, `drawallinsidenpcs` false, `weathereffectsenabled` true, `ghostsnear` false; a script's own field of the same name on an object wins over the setting; `setminimap` is remembered and not drawn

## 8. Common mistakes

| Code | Cause | Fix |
|------|-------|-----|
| `W-UNKNOWN-FUNCTION` | A misspelled name, a server function in client code, or a function from a joined class | Check the spelling in the API digest, move the call to the right half, or call `this.name(...)` |
| `W-RESERVED-NAME` | A field or parameter named `level`, `head`, or `dir` | Rename it |
| `W-ARRAY-METHOD-NAME` | A function named `insert`, `delete`, or `remove` | Rename it |
| `W-ARRAY-TRUTHINESS` | `if (list)` on an array | Write `if (list != NULL)` |
| `W-SLEEP-WITH-TIMER` | `sleep` in a script that uses `setTimer` | Use `waitfor`, or call `setTimer` again after the sleep |
| `W-SQL-ESCAPE` | `.escape()` used to build SQL | Pass the values as parameters |
| `W-SCRIPT-GLOBAL` | A name without a prefix shared between functions | Use `this.` or `temp.` |
| `E-EMPTY-ARRAY-POSITION` | `{}` in a call or `return {};` | Assign it to a variable first |
| `E-AWAIT-OUTSIDE-ASYNC` | `await` in a function that is not `async` | Add `async` |
| `E-ASSIGN-CONST` | A write to a `const` or `enum` name | Use a variable |

Turn on `strict` while you write: it turns the quirk warnings, including `W-UNKNOWN-FUNCTION`, into errors. A script that compiles in strict mode behaves the same in normal mode.

## 9. API digest

Every implemented built-in, one line each. `[S]` runs on the server only and `[C]` on the client only. A parameter with `?` is optional and `...` takes any number of arguments. A name that is not listed here is not implemented: calling it does nothing and reports `R-NOT-IMPLEMENTED`. Descriptions and examples for each owner are at `https://bornedocs.nullborne.com/api/<owner>/`.

### array

- `array.add(value: any)`
- `array.addarray(other: array)`
- `array.at(index: number) -> any`
- `array.chunk(size: number) -> array`
- `array.clear()`
- `array.concat(...parts?: any) -> array`
- `array.copy() -> array`
- `array.delete(index: number)`
- `array.every(callback: function) -> number`
- `array.fill(value: any, start?: number, end?: number) -> array`
- `array.filter(callback: function) -> array`
- `array.find(callback: function) -> any`
- `array.findindex(callback: function) -> number`
- `array.findlast(callback: function) -> any`
- `array.findlastindex(callback: function) -> number`
- `array.flat(depth?: number) -> array`
- `array.flatmap(callback: function) -> array`
- `array.foreach(callback: function)`
- `array.groupby(callback: function) -> object`
- `array.includes(value: any, from?: number) -> number`
- `array.index(value: any) -> number`
- `array.insert(index: number, value: any)`
- `array.insertarray(index: number, other: array)`
- `array.isempty() -> number`
- `array.joinstring(separator?: string) -> string`
- `array.lastindex(value: any) -> number`
- `array.length: number`
- `array.link() -> array`
- `array.loadfolder(pattern: string, recursive?: number) -> boolean`
- `array.map(callback: function) -> array`
- `array.pop() -> any`
- `array.push(...values?: any) -> number`
- `array.reduce(callback: function, initial?: any) -> any`
- `array.reduceright(callback: function, initial?: any) -> any`
- `array.remove(value: any)`
- `array.replace(index: number, value: any)`
- `array.reverse() -> array`
- `array.savelines(path: string, mode: number) -> number`
- `array.shift() -> any`
- `array.size() -> number`
- `array.slice(start: number, end?: number) -> array`
- `array.some(callback: function) -> number`
- `array.sortascending()`
- `array.sortby(comparator: function) -> array`
- `array.sortbyvalue(member: string, type: string, ascending: any) -> array`
- `array.sortdescending()`
- `array.splice(start: number, count?: number) -> array`
- `array.subarray(start: number, count?: number) -> array`
- `array.subarray2(start1: number, length1: number, start2: number, length2: number) -> array`
- `array.sum() -> number`
- `array.unique() -> array`
- `array.unshift(...values?: any) -> number`

### controlbinding

- `controlbinding.action: number` [C]
- `controlbinding.keycode: number` [C]
- `controlbinding.keytext: string` [C]
- `controlbinding.slot: number` [C]

### curlrequest

- `curlrequest.data: string` [S]
- `curlrequest.error: string` [S]
- `curlrequest.headers: array` [S]
- `curlrequest.post: boolean` [S]
- `curlrequest.postdata: string` [S]
- `curlrequest.quick: boolean` [S]
- `curlrequest.returncode: number` [S]
- `curlrequest.sendrequest() -> number` [S]
- `curlrequest.skipsslverification: boolean` [S]
- `curlrequest.url: string` [S]

### drawingpanel

- `drawingpanel.availablefilters: array` [C]
- `drawingpanel.clearall() -> number`
- `drawingpanel.clearrectangle(x: number, y: number, w: number, h: number) -> number`
- `drawingpanel.drawcurve(x1: number, y1: number, cx: number, cy: number, x2: number, y2: number, width: number, r?: number, g?: number, b?: number, a?: number) -> number`
- `drawingpanel.drawimage(x: number, y: number, file: string) -> number`
- `drawingpanel.drawimagerectangle(x: number, y: number, file: string, sx: number, sy: number, sw: number, sh: number) -> number`
- `drawingpanel.drawimagestretched(x: number, y: number, w: number, h: number, file: string, sx: number, sy: number, sw: number, sh: number) -> number`
- `drawingpanel.drawline(x1: number, y1: number, x2: number, y2: number, width: number, r: number, g: number, b: number, a: number) -> number`
- `drawingpanel.drawobject(x: number, y: number, object: object) -> number`
- `drawingpanel.drawtext(x: number, y: number, text: string, font: string, size: number, r: number, g: number, b: number, a: number) -> number`
- `drawingpanel.enablecache: boolean` [C]
- `drawingpanel.filterrectangle(x: number, y: number, w: number, h: number, filter: string) -> number`
- `drawingpanel.height: number` [C]
- `drawingpanel.isclear: boolean` [C]
- `drawingpanel.maskimage(x: number, y: number, file: string, operation: string) -> boolean`
- `drawingpanel.parth: number` [C]
- `drawingpanel.partw: number` [C]
- `drawingpanel.partx: number` [C]
- `drawingpanel.party: number` [C]
- `drawingpanel.profile: string` [C]
- `drawingpanel.saveimage(file: string) -> number`
- `drawingpanel.saveimage2(file: string, bits?: number) -> number`
- `drawingpanel.saveimagetostring(file: string) -> string`
- `drawingpanel.saveimagetostring2(file: string, bits?: number) -> string`
- `drawingpanel.setdrawpalette(colors: string, transparent?: number) -> number`
- `drawingpanel.setsize(width: number, height: number)`
- `drawingpanel.useownprofile: boolean` [C]
- `drawingpanel.width: number` [C]

### framedetail

- `framedetail.bordercolor: array` [C]
- `framedetail.borderenable: boolean` [C]
- `framedetail.bordermovable: boolean` [C]
- `framedetail.borderwidth: number` [C]
- `framedetail.minextent: array` [C]

### gani

- `gani.continuous: boolean` [C]
- `gani.ganitype: string` [C]
- `gani.loop: boolean` [C]
- `gani.movie: boolean` [C]
- `gani.setbackto: string` [C]
- `gani.singledirection: boolean` [C]

### ganiobject

- `ganiobject.alpha: number` [C]
- `ganiobject.aniparams: string` [C]
- `ganiobject.anistep: number` [C]
- `ganiobject.attachedtoobject: npc` [C]
- `ganiobject.attachid: number` [C]
- `ganiobject.attachtype: number` [C]
- `ganiobject.blue: number` [C]
- `ganiobject.green: number` [C]
- `ganiobject.mode: number` [C]
- `ganiobject.red: number` [C]
- `ganiobject.rotation: number` [C]
- `ganiobject.rotationcenter: string` [C]
- `ganiobject.stretchx: number` [C]
- `ganiobject.stretchy: number` [C]
- `ganiobject.useowncenter: boolean` [C]
- `ganiobject.zoom: number` [C]

### global

- `$camera::movementspeed: number` [C]
- `$pref::audio::mastervolume: number` [C]
- `$pref::audio::midivolume: number` [C]
- `$pref::audio::mp3volume: number` [C]
- `$pref::audio::radiovolume: number` [C]
- `$pref::audio::reversestereo: number` [C]
- `$pref::audio::soundvolume: number` [C]
- `$pref::audio::uivolume: number` [C]
- `$pref::borne::automapping: number` [C]
- `$pref::borne::defaultfontname: string` [C]
- `$pref::borne::defaultfontsize: number` [C]
- `$pref::borne::displaytrayicon: number` [C]
- `$pref::borne::dontsavepasswords: number` [C]
- `$pref::borne::filescan: number` [C]
- `$pref::borne::language: string` [C]
- `$pref::borne::limitnicknames: number` [C]
- `$pref::borne::loadbuddylistfromserver: number` [C]
- `$pref::borne::localsockets: number` [C]
- `$pref::borne::nicknamelimit: number` [C]
- `$pref::borne::showyourselfonbuddylists: number` [C]
- `$pref::borne::utf8fontfile: string` [C]
- `$pref::capture::allowbyscript: number` [C]
- `$pref::capture::area: string` [C]
- `$pref::capture::audiobitrate: number` [C]
- `$pref::capture::disabledaynight: number` [C]
- `$pref::capture::format: string` [C]
- `$pref::capture::fps: number` [C]
- `$pref::capture::hideinterface: number` [C]
- `$pref::capture::recordaudio: number` [C]
- `$pref::capture::showmouse: number` [C]
- `$pref::capture::size: string` [C]
- `$pref::capture::videobitrate: number` [C]
- `$pref::display::mode: string` [C]
- `$pref::display::scale: string` [C]
- `$pref::display::vsync: number` [C]
- `$pref::options::reduceparticles: number` [C]
- `$pref::video::defaultguistyle: string` [C]
- `$pref::video::externalguistyle: string` [C]
- `$pref::video::fullscreenmode: string` [C]
- `$pref::video::resolution: number` [C]
- `$pref::video::screenshotformat: string` [C]
- `$pref::video::useopengl: number` [C]
- `$pref::video::windowmode: string` [C]
- `_(text: string) -> string`
- `abs(x: number) -> number`
- `addControl(control: object)` [C]
- `addgmap(name: string) -> number` [S]
- `addstring(list: any, value: any) -> array`
- `addtiledef(image: string, levelPrefix: string, type: number) -> any`
- `addtiledef2(image: string, levelPrefix: string, x: number, y: number) -> any`
- `addweapon(name: string) -> number` [S]
- `adventure_getControlBinding(action: number, slot: number) -> controlbinding` [C]
- `adventure_setControlBinding(action: number, slot: number, code: number)` [C]
- `aes_decrypt(key: string, iv: string, data: string) -> string`
- `aes_encrypt(key: string, iv: string, data: string) -> string`
- `aindexof(value: number, array: array) -> number`
- `allfeatures: number` [C]
- `allowedImageAnimations: string` [C]
- `allplayers: player[]` [S]
- `allplayerscount: number` [C]
- `allrenderobjecttypes: number` [C]
- `arccos(x: number) -> number`
- `arcsin(x: number) -> number`
- `arctan(x: number) -> number`
- `arraylen(list: any) -> number`
- `attachplayertoobj(player: number, npc: any) -> boolean`
- `base64decode(s: string) -> string`
- `base64encode(s: string) -> string`
- `bintohex(data: string) -> string`
- `blockagain() -> any`
- `blockagainlocal()` [C]
- `board: array` [S]
- `bodyCachePerPlayer: number` [C]
- `bodyexists(name: string) -> number` [S]
- `boxcontains(outer: any, inner: any) -> boolean`
- `boxcontainsvector(box: any, point: any) -> boolean`
- `boxintersect(a: any, b: any) -> string`
- `boxoverlaps(a: any, b: any) -> boolean`
- `boxscale(box: any, scale: any) -> string`
- `callnpc(id: number, name: string, ...params?: any) -> any` [S]
- `callweapon(index: number, call: array)` [C]
- `camerabounds: array` [C]
- `cameraposition: array` [C]
- `camerasize: array` [C]
- `canbecarried()` [C]
- `canbepulled()` [C]
- `canbepushed()` [C]
- `cannotbecarried()` [C]
- `cannotbepulled()` [C]
- `cannotbepushed()` [C]
- `canspin: boolean` [C]
- `canwarp() -> any` [S]
- `canwarp2() -> any` [S]
- `carriesblackstone: boolean` [C]
- `carriesbush: boolean` [C]
- `carriesnpc: boolean` [C]
- `carriessign: boolean` [C]
- `carriesstone: boolean` [C]
- `carriesvase: boolean` [C]
- `ceil(x: number) -> number`
- `changeimgcolors(index: number, red: number, green: number, blue: number, alpha: number)`
- `changeimgmode(index: number, mode: number)`
- `changeimgpart(index: number, x: number, y: number, width: number, height: number)`
- `changeimgvis(index: number, layer: number)`
- `changeimgzoom(index: number, zoom: number)`
- `char(code: number) -> string`
- `checksum(s: string) -> number`
- `clearemptyglobalvars()`
- `contains(s: string, sub: string) -> number`
- `convertlatintoutf8(text: string) -> string`
- `convertstringtotime(format: string, text: string) -> number`
- `converttimetostring(time?: number) -> string`
- `convertutf8tolatin(text: string) -> string`
- `copylevel(source: string, destination: string) -> boolean` [S]
- `copyStrings(first: string, second: string)` [C]
- `cos(radians: number) -> number`
- `cursoroff()` [C]
- `cursoron()` [C]
- `dbLastError() -> string` [S]
- `dbQuery(sql: string) -> array` [S]
- `decompressfile(zip: string, pattern: string, folder: string, flags: number) -> number` [S]
- `degtorad(degrees: number) -> number`
- `deletefile(path: string) -> number`
- `deletefolder(path: string) -> number` [S]
- `deletelevel(name: string) -> boolean` [S]
- `deletestring(list: any, value: any) -> array`
- `des_decrypt(key: string, data: string) -> string`
- `des_encrypt(key: string, data: string) -> string`
- `destroy() -> number`
- `detachplayer()`
- `disabledefmovement()` [C]
- `disabledsoundeffects: string` [C]
- `disableinfowindow()` [C]
- `disablemap()` [C]
- `disableoptionswindow()` [C]
- `disablepause()` [C]
- `disableplayerlist()` [C]
- `dontblock() -> any`
- `dontblocklocal()` [C]
- `downloadfile: string` [C]
- `downloadpos: number` [C]
- `downloadsize: number` [C]
- `drawallinsidenpcs: boolean` [C]
- `drawaslight() -> any`
- `TDrawingPanel`
- `drawoverplayer()` [C]
- `drawunderplayer() -> any`
- `echo(message: any)`
- `echo2(text: string, tab: string) -> any` [S]
- `emoticonChar: string` [C]
- `enabledefmovement()` [C]
- `enablefeatures(flags: number)` [C]
- `enableinfowindow()` [C]
- `enablemap()` [C]
- `enableoptionswindow()` [C]
- `enablepause()` [C]
- `enableplayerlist()` [C]
- `escapefilename(text: string) -> string`
- `escapestring(s: string) -> string` [S]
- `escapestring2(s: string) -> string` [S]
- `escapestringkeepnewline(text: string) -> string`
- `executeQuery(sql: string) -> array` [S]
- `exp(x: number) -> number`
- `extractfilebase(path: string) -> string`
- `extractfileext(path: string) -> string`
- `extractfilename(path: string) -> string`
- `extractfilepath(path: string) -> string`
- `fileexists(path: string) -> number`
- `fileisfolder(path: string) -> number` [S]
- `filesize(path: string) -> number`
- `fileupdate(name: string) -> number`
- `fileupdateignore(name: string)` [S]
- `findani(name: string) -> object` [C]
- `findareanpcs(x: number, y: number, width: number, height: number) -> npc[]`
- `findareaplayers(x: number, y: number, width: number, height: number) -> player[]`
- `findfiles(pattern: string) -> array` [S]
- `findimg(index: number) -> showimg`
- `findlevel(name: string) -> level`
- `findnearestplayer(x: number, y: number) -> player`
- `findnearestplayers(x: number, y: number) -> player[]`
- `findnpc(name: string) -> npc`
- `findnpcbyid(id: number) -> npc`
- `findObject(name: string) -> object`
- `findpath(sx: number, sy: number, tx: number, ty: number, options?: object) -> array`
- `findpathasync(sx: number, sy: number, tx: number, ty: number, options?: object) -> object`
- `findpathinarray(grid: array, walkable: array, blocking: array, stop: array, nostop: array, startY: number, startX: number, maxLength: number) -> array`
- `findpathingrid(grid: array, costs: array, sx: number, sy: number, tx: number, ty: number, options?: object) -> array`
- `findplayer(account: string) -> player`
- `findplayer2(name: string) -> player`
- `findplayerbycommunityname(name: string) -> player`
- `findplayerbyid(id: number) -> player`
- `findplayersbyguild(guild: string, allies: string) -> player[]` [S]
- `findrc(account: string) -> player` [S]
- `findweapon(name: string) -> weapon`
- `findweaponnpc(name: string) -> weapon` [S]
- `fiximagetransparency(file: string) -> boolean`
- `float(x: any) -> number`
- `floor(x: number) -> number`
- `focusx: number` [C]
- `focusy: number` [C]
- `format(pattern: string, ...values?: any) -> string`
- `format2(pattern: string, values: array) -> string`
- `formatfraction(number: number, format: array) -> string`
- `formatprice(number: number, separator?: string) -> string`
- `formattimestring(format: string, time?: number) -> string`
- `freeallresources()` [C]
- `freefileresources(name: string)` [C]
- `freezeplayer(seconds: number)`
- `freezeplayer2()`
- `gameControlHasFocus(alsochat?: boolean) -> boolean` [C]
- `gamehasfocus(chatBarCounts: boolean) -> boolean` [C]
- `generatezipstring(files: array) -> string` [S]
- `getangle(dx: number, dy: number) -> number`
- `getareanpcs(x: number, y: number, width: number, height: number) -> npc[]` [S]
- `getascii(s: string) -> number`
- `getboxcenter(box: any) -> string`
- `getcallstack() -> array`
- `getcallstackinfo() -> string`
- `getDesktopResolution() -> string` [C]
- `getdir(dx: number, dy: number) -> number`
- `getDisplayDeviceList() -> array` [C]
- `getdownloadprogress(name: string) -> number` [C]
- `getextension(path: string) -> string`
- `getfilemodtime(path: string) -> number`
- `getgamesubversion() -> string` [C]
- `getguildnick(guild: string, account: string) -> string` [S]
- `gethttprequest(host: string, port: number, file: string) -> httprequest`
- `gethttprequestforurl(url: string) -> httprequest`
- `gethttprequests() -> httprequest[]`
- `getimgheight(image: string) -> number` [C]
- `getimgpixel(file: string, x: number, y: number) -> array` [C]
- `getimgwidth(image: string) -> number` [C]
- `getKeyCode(name: string) -> number` [C]
- `getlastfiledownloadtime() -> number` [C]
- `getlastfilerequesttime() -> number` [C]
- `getlastwebdownloadtime() -> number`
- `getlastwebrequesttime() -> number`
- `getlicenseexpirationtime() -> number`
- `getloginaccountname() -> string` [C]
- `getmappartfile(column: number, row: number) -> string`
- `getmapx(level: string) -> number` [C]
- `getmapy(level: string) -> number` [C]
- `getmemorystatsobjects() -> number`
- `getmemoryusage() -> number`
- `getmusicfilename() -> string` [C]
- `getmusicstatus() -> string` [C]
- `getmusictags() -> array` [C]
- `getnearestplayer(x: number, y: number) -> player` [C]
- `getnearestplayers(x: number, y: number) -> player[]`
- `getnpcindex(name: string) -> number` [S]
- `getnpcserveruptime() -> number` [S]
- `getplatform() -> string` [C]
- `getplayerindex(account: string) -> number` [S]
- `getPlayerListIcons() -> array` [C]
- `getpremiumoption() -> string` [C]
- `getprocesscpuusage() -> number` [S]
- `getprocessuptime() -> number` [S]
- `getResolutionList() -> array` [C]
- `getservername() -> string`
- `getstring(name: string) -> string`
- `getstringkeys(prefix: string) -> array`
- `getsupportedgraalversions() -> string`
- `gettextheight(size: number, font: string, style: string) -> number` [C]
- `gettextwidth(size: number, font: string, style: string, text: string) -> number` [C]
- `gettileset() -> string` [C]
- `gettilesettype() -> number` [C]
- `getutctime() -> number`
- `getz(x?: number, y?: number) -> number` [C]
- `ghostsnear: number` [C]
- `graalversion: number`
- `gravity: number` [C]
- `GuiAccordionCtrl` [C]
- `GuiBitmapBorderCtrl` [C]
- `GuiBitmapButtonCtrl` [C]
- `GuiBitmapCtrl` [C]
- `GuiButtonCtrl` [C]
- `GuiCheckBoxCtrl` [C]
- `GuiContextMenuCtrl` [C]
- `GuiControl` [C]
- `GuiDrawingPanel`
- `GuiFrameSetCtrl` [C]
- `GuiGameCtrl` [C]
- `GuiMenuCtrl` [C]
- `GuiMLTextCtrl` [C]
- `GuiMLTextEditCtrl` [C]
- `GuiPopUpEditCtrl` [C]
- `GuiPopUpMenuCtrl` [C]
- `GuiProgressCtrl` [C]
- `GuiRadioCtrl` [C]
- `GuiScrollCtrl` [C]
- `GuiShowImgCtrl` [C]
- `GuiSliderCtrl` [C]
- `GuiSlideShowCtrl` [C]
- `GuiStartMenuCtrl` [C]
- `GuiStretchCtrl` [C]
- `GuiTabCtrl` [C]
- `GuiTaskbar` [C]
- `GuiTextCtrl` [C]
- `GuiTextEditCtrl` [C]
- `GuiTextEditSliderCtrl` [C]
- `GuiTextListCtrl` [C]
- `GuiTreeViewCtrl` [C]
- `GuiWindowCtrl` [C]
- `hash_hmac(algorithm: string, data: string, key: string) -> string`
- `hasright(rights: string, file: string) -> boolean` [S]
- `hasrightflag(flag: string) -> boolean` [S]
- `hasweapon(name: string) -> number`
- `headexists(name: string) -> number` [S]
- `hextobin(hex: string) -> string` [S]
- `hide()`
- `hideimg(index: number)`
- `hideimgs(first: number, last: number)`
- `hidelocal()` [C]
- `hideplayer(seconds: number)` [C]
- `hidesword(seconds: number)` [C]
- `hitobjects(x: number, y: number, power: number)` [C]
- `inet_aton(ip: string) -> number`
- `inet_ntoa(n: number) -> string`
- `insertstring(list: any, index: number, value: any) -> array`
- `installedLanguages: string` [C]
- `int(x: number) -> number`
- `isAdminGuild(guild: string) -> boolean` [C]
- `isApplicationActive: boolean` [C]
- `iscarrying: boolean` [C]
- `isclassloaded(name: string) -> boolean`
- `iscursoron() -> boolean` [C]
- `isdemoversion() -> boolean` [C]
- `isdownloading(name: string) -> number` [C]
- `isdownloadingfiles() -> number` [C]
- `isfocused: number` [C]
- `isFullscreenMode() -> boolean` [C]
- `isimgpixeltransparent(file: string, x: number, y: number) -> boolean` [C]
- `isimgrectangletransparent(file: string, x: number, y: number, width: number, height: number) -> boolean` [C]
- `isinclass(className: string) -> boolean`
- `isipinranges(ranges: string, ip: string, computerid: number) -> number` [S]
- `isleader: boolean` [C]
- `ismusicplaying() -> number` [C]
- `isobject(name: any) -> number`
- `isofflinemode() -> boolean` [C]
- `isonmap: number` [C]
- `isOpenGL: boolean` [C]
- `ispremiumversion() -> boolean` [C]
- `isRecordingVideo: boolean` [C]
- `issoundplaying(file: string) -> number` [C]
- `isStreamingVideo: string` [C]
- `isstringutf8(text: string) -> boolean`
- `join(className: string) -> number`
- `jpegQuality: number` [C]
- `keydown(key: number) -> number` [C]
- `keydown2(keycode: number) -> number` [C]
- `keyDown2Global(code: number, anymodifier?: boolean) -> boolean` [C]
- `keyDownGlobal(action: number) -> boolean` [C]
- `keyName(action: number) -> string` [C]
- `keyName2(code: number) -> string` [C]
- `lastdownloadfile: string` [C]
- `lay2(item: string, x: number, y: number)` [C]
- `leave(className: string) -> number`
- `leftmousebutton: number` [C]
- `leftMouseButtonGlobal: boolean` [C]
- `levelexists(name: string) -> boolean` [S]
- `levelorgx: number` [C]
- `levelorgy: number` [C]
- `lighteffectsenabled: number` [C]
- `loadclass(name: string)` [C]
- `loadingScreenEnabled: boolean` [C]
- `loadlines(path: string) -> array`
- `loadmap(name: string) -> number`
- `loadstring(path: string) -> string`
- `log(base: number, value: number) -> number`
- `lowercase(s: string) -> string`
- `makescreenshot2(file: string, flags?: number, levelx?: number, levely?: number, levelz?: number, width?: number, height?: number)` [C]
- `makescreenshotfull(file: string, width?: number, height?: number)` [C]
- `makescreenshotgame(file: string, flags?: number, width?: number, height?: number)` [C]
- `makevar(fullName: string, value?: any) -> any`
- `matrixcreate(position: any, rotation: any) -> string`
- `matrixcreatefromeuler(euler: any) -> string`
- `matrixmulpoint(matrix: any, point: any) -> string`
- `matrixmultiply(a: any, b: any) -> string`
- `matrixmulvector(matrix: any, vector: any) -> string`
- `max(a: number, b: number) -> number`
- `md5(s: string) -> string`
- `message(text: string) -> any`
- `middlemousebutton: number` [C]
- `middleMouseButtonGlobal: boolean` [C]
- `min(a: number, b: number) -> number`
- `minFileCacheSize: number` [C]
- `mouseButtons: number` [C]
- `mouseButtonsGlobal: number` [C]
- `mousescreenx: number` [C]
- `mousescreeny: number` [C]
- `mousewheeldelta: number` [C]
- `mousex: number` [C]
- `mousey: number` [C]
- `move(dx: number, dy: number, time: number, options: number) -> any`
- `movefile(from: string, to: string) -> number` [S]
- `MovieClip` [C]
- `MRandomGenerator`
- `musiclen() -> number` [C]
- `musicpos() -> number` [C]
- `n_(text: string) -> string`
- `noplayeronwall(on: number)` [C]
- `npcs: npc[]` [C]
- `onActionClientSide(...args: any)` [C]
- `onActionLeftMouse(x: number, y: number)` [C]
- `onActionMiddleMouse(x: number, y: number)` [C]
- `onActionProjectile(...params: any)`
- `onActionProjectile2(x: number, y: number)` [C]
- `onActionRightMouse(x: number, y: number)` [C]
- `onActionServerSide(...args: any)` [S]
- `onBind()`
- `onBindFailed()`
- `onClassLoaded(name: string)` [C]
- `onClose()`
- `onConnect()`
- `onConnectFailed()`
- `onConnectingToServer()` [C]
- `onControlKeyDown(keycode: number, key: string, scancode: number, window: string)` [C]
- `onControlKeyUp(keycode: number, key: string, scancode: number, window: string)` [C]
- `onCreated()`
- `onDestroy()`
- `onDisconnected()`
- `onDisconnectedFromServer()` [C]
- `onEmoticon(player: object, file: string)` [C]
- `onExternalStyleChanges(style: string)` [C]
- `onFileChunkReceived(name: string, received: number, total: number)` [C]
- `onFileDownloaded(name: string, size: number)` [C]
- `onFixedUpdate()`
- `onJoinedClassUpdated(classname: string)`
- `onKeyPressed(keycode: number, key: string, scancode: number)` [C]
- `onKeyReleased(key: string, scancode: number)` [C]
- `onLevelFileUpdated(name: string)` [C]
- `onLevelLoaded()`
- `onLogMessage(text: string, red: number, green: number, blue: number, kind: string)` [C]
- `onMouseDown(button: string)` [C]
- `onMouseUp(button: string)` [C]
- `onMouseWheel(steps: number)` [C]
- `onMouseWheelDown(modifiers?: number)` [C]
- `onMouseWheelUp(modifiers?: number)` [C]
- `onMovementFinished()`
- `onNewClient(client: object)`
- `onOfflineModeStarted()` [C]
- `onOpenInfoWindow()` [C]
- `onOpenLogWindow()` [C]
- `onOpenOptionsWindow()` [C]
- `onOpenPlayerList()` [C]
- `onOpenServerList()` [C]
- `onPathFound()`
- `onPlayAnimation(player: object, gani: string)` [C]
- `onPlayerChanges(player: object, id: number)` [C]
- `onPlayerChats()`
- `onPlayerEndsReading()` [C]
- `onPlayerEnters()`
- `onPlayerLanguageChanges(player: object, language: string)` [C]
- `onPlayerLeaves()` [S]
- `onPlayerLogin(player: object)` [S]
- `onPlayerLogout(player: object)` [S]
- `onPlayerShoots(player: object, projectile: object)` [S]
- `onPlayerTouchsMe()`
- `onPlayerTouchsOther(other: object)` [C]
- `onRCChat(cmd: string, params: array)` [S]
- `onRCCommandKind(cmd: string) -> string` [S]
- `onRCTabMessage(sender: object, tabName: string, message: string)` [S]
- `onReceiveData()`
- `onReceiveDataPackage(package: string)`
- `onReceivePing(time: number)` [S]
- `onReceiveUDPData(data: string, ip: string, port: number)`
- `onRemoteControlLogin(rc: object)` [S]
- `onRemotePlayerChats(player: object, text: string)` [C]
- `onRemoved()`
- `onServerLogin()` [C]
- `onTimeout()`
- `onToggleScriptedPlayerList()` [C]
- `onUpdate()` [C]
- `onwall(x: number, y: number) -> number`
- `onwall2(x: number, y: number, width: number, height: number) -> number`
- `onwallpath(x: number, y: number, width: number, height: number, dx: number, dy: number) -> boolean` [S]
- `onWasShot()` [C]
- `onwater(x: number, y: number) -> number`
- `onwater2(x: number, y: number, width: number, height: number) -> boolean` [C]
- `onwaterpath(x: number, y: number, width: number, height: number, dx: number, dy: number) -> boolean` [S]
- `openurl(url: string)` [C]
- `openurl2(url: string, width: number, height: number)` [C]
- `parsejson(target: object, json: string)`
- `particleeffectsenabled: number` [C]
- `pi: number`
- `play(file: string)` [C]
- `play2(file: string, x: number, y: number, volume: number)` [C]
- `play3d(file: string, loop: number, position: string, velocity?: string)` [C]
- `playerblocking(on: number)` [C]
- `players: player[]` [S]
- `playlooped(file: string)` [C]
- `playlooped2(file: string, x: number, y: number, volume: number)` [C]
- `popalldialogs() -> number` [C]
- `popdialog() -> number` [C]
- `pow(base: number, exponent: number) -> number`
- `preloadanimation(gani: string)` [C]
- `preloadimage(file: string, keep?: number)` [C]
- `preloadleveldefaulttile: number` [C]
- `printf(pattern: string, ...values?: any)`
- `pushdialog(control: object) -> number` [C]
- `putleaps(count: number, x: number, y: number)` [C]
- `putnpc2(x: number, y: number, script: string) -> npc` [S]
- `radtodeg(radians: number) -> number`
- `random(min: number, max: number) -> number`
- `randomstring(length: number) -> string`
- `rc4_cipher(key: string, data: string) -> string`
- `RCTab(name: string) -> object` [S]
- `reflectarrow(index: number)` [C]
- `regexescape(str: string) -> string`
- `regexfind(str: string, pattern: string, flags?: string) -> array`
- `regexfindall(str: string, pattern: string, flags?: string) -> array`
- `regexfindpos(str: string, pattern: string, flags?: string) -> array`
- `regexmatch(str: string, pattern: string, flags?: string) -> number`
- `regexreplace(str: string, pattern: string, replacement: string, flags?: string) -> string`
- `regexsplit(str: string, pattern: string, flags?: string) -> array`
- `regextest(str: string, pattern: string, flags?: string) -> number`
- `regexvalid(pattern: string) -> string`
- `removearrow(index: number)` [C]
- `removeescapesfromfilename(text: string) -> string`
- `removeguild(guild: string)` [S]
- `removestring(list: any, index: number) -> array`
- `removetiledefs(start: string)` [C]
- `removeweapon(name: string) -> number`
- `replaceani(default: string, replacement: string)` [C]
- `replacestring(list: any, index: number, value: any) -> array`
- `requestcurl(url: string) -> curlrequest` [S]
- `requesthttp(host: string, port: number, file: string) -> httprequest`
- `requestsql(sql: string, expectResult: boolean, bindings?: array) -> sqlrequest` [S]
- `requestsql2(dbName: string, sql: string, expectResult: boolean, bindings?: array) -> sqlrequest` [S]
- `requesturl(url: string) -> httprequest`
- `requesturlasgamefile(url: string, name: string, modtime: number, force: number) -> httprequest` [C]
- `resetfocus()` [C]
- `resetimageanimation(image: string)` [C]
- `resolvehost(name: string) -> string` [S]
- `rightmousebutton: number` [C]
- `rightMouseButtonGlobal: boolean` [C]
- `rotationadd(a: any, b: any) -> string`
- `rotationaddeuler(rotation: any, euler: any) -> string`
- `rotationfromeuler(euler: any) -> string`
- `rotationsub(a: any, b: any) -> string`
- `rotationtoeuler(rotation: any) -> string`
- `round(x: number) -> number`
- `rsa_decrypt(privatekey: string, data: string) -> string`
- `rsa_encodesignature(hash: string) -> string`
- `rsa_encrypt(publickey: string, data: string) -> string`
- `rsa_generateprivatekey(bits: number, exponent: number) -> string`
- `rsa_getpublickey(privateKey: string) -> string`
- `rsa_sign(privatekey: string, data: string) -> string`
- `rsa_verify(publickey: string, message: string, signature: string) -> boolean`
- `rungarbagecollector()`
- `saveaccount() -> any` [S]
- `savelevel(level: string) -> number` [S]
- `savelog(message: string) -> number` [S]
- `savelog2(file: string, message: string) -> number` [S]
- `say(index: number)` [C]
- `say2(text: string)`
- `scheduleevent(delay: number, event: string, ...args?: any)`
- `screenheight: number` [C]
- `screenPixelScale: number` [C]
- `screenwidth: number` [C]
- `screenX(x: number, y: number) -> number` [C]
- `screenY(x: number, y: number) -> number` [C]
- `scriptedControls: boolean` [C]
- `scriptedPlayerList: boolean` [C]
- `selectedListPlayers: player[]` [C]
- `selectedsword: number` [C]
- `selectedweapon: number` [C]
- `sendrpgmessage(text: string)`
- `sendtonc(text: string) -> any` [S]
- `sendtorc(text: string) -> any` [S]
- `servername() -> string`
- `set(name: string)`
- `setani(ani: string, params: string)`
- `setarray(var: array, count: number) -> array`
- `setbeltcolor(color: any)` [C]
- `setbody(file: string) -> any`
- `setbow(image: string)` [C]
- `setcharani(ani: string, param: string) -> any`
- `setcharprop(code: string, value: any)`
- `setcoatcolor(color: any)` [C]
- `setcoloreffect(red: number, green: number, blue: number, alpha: number) -> any`
- `setContentControl(control: object)` [C]
- `setcursor2(image: string)` [C]
- `setEffect(red: number, green: number, blue: number, alpha: number)` [C]
- `seteffectmode(mode: number) -> any`
- `setfocus(x: number, y: number)` [C]
- `sethead(file: string) -> any`
- `setimg(file: string) -> any`
- `setimgpart(file: string, x: number, y: number, width: number, height: number) -> any`
- `setletters(text: string)` [C]
- `setlevel2(level: string, x: number, y: number) -> any` [S]
- `setminimap(file: string, image: string, x: number, y: number)` [C]
- `setmusicvolume(left: number, right?: number)` [C]
- `setplayerdir(dir: number)` [C]
- `setplayerprop(code: string, value: any)`
- `setshape(type: number, width: number, height: number) -> any`
- `setshape2(width: number, height: number, tileTypes: array) -> any`
- `setshield(file: string, power: number) -> any`
- `setshoecolor(color: any)` [C]
- `setshootparams(params: string)`
- `setskincolor(color: any)` [C]
- `setsleevecolor(color: any)` [C]
- `setsoundpitch(file: string, pitch: number)` [C]
- `setsoundpitchbynote(file: string, base: string, wanted: string)` [C]
- `setspritesimage(file: string)` [C]
- `setStatusImage(name: string)` [C]
- `setstring(name: string, text: string)`
- `setsword(file: string, power: number) -> any`
- `setTimer(seconds: number)`
- `setz(x: number, y: number, width: number, height: number, z1: number, z2: number, z3: number, z4: number)` [C]
- `setzoomeffect(factor: number) -> any`
- `sha1(text: string) -> string`
- `sha256(text: string) -> string`
- `shieldexists(name: string) -> number` [S]
- `shoot(x: number, y: number, z: number, angle: number, zangle: number, speed: number, ani: string, params: string)`
- `shotbyplayer: boolean` [C]
- `show()`
- `showani(index: number, x: number, y: number, dir: number, ani: string) -> showimg`
- `showani2(index: number, x: number, y: number, dir: number, ani: string, layer: number) -> showimg`
- `showcharacter() -> any`
- `showimg(index: number, file: string, x: number, y: number) -> showimg`
- `showimg2(index: number, file: string, x: number, y: number, layer: number) -> showimg`
- `showlocal()` [C]
- `showpoly(index: number, coords: array) -> showimg` [C]
- `showpoly2(index: number, coords: array) -> showimg` [C]
- `showTerrainGrid: boolean` [C]
- `showtext(index: number, x: number, y: number, font: string, style: string, text: string) -> showimg`
- `showtext2(index: number, x: number, y: number, font: string, style: string, text: string, layer: number) -> showimg`
- `sin(radians: number) -> number`
- `sleep(seconds: number)`
- `spritesimage: string` [C]
- `sqliteDefragment(host: string) -> boolean` [S]
- `sqliteenablefilesynchronization(host: string, on: boolean) -> boolean`
- `sqrt(x: number) -> number`
- `Stage` [C]
- `startrecordvideo() -> boolean` [C]
- `statusImage: string` [C]
- `stopmidi()` [C]
- `stopmusic()` [C]
- `stoprecordvideo() -> boolean` [C]
- `stopsound(file: string)` [C]
- `stopsounds(includelooped: number)` [C]
- `strcmp(a: string, b: string) -> number`
- `strequals(a: string, b: string) -> number`
- `strlen(s: string) -> number`
- `strpos(s: string, sub: string) -> number`
- `strtofloat(text: string) -> number`
- `supportsopenglshader() -> boolean` [C]
- `swordexists(name: string) -> number` [S]
- `tan(radians: number) -> number`
- `testnpc(x: number, y: number) -> number`
- `testplayer(x: number, y: number) -> number`
- `testsign(x: number, y: number) -> number` [C]
- `tilelayercount: number` [S]
- `tilelayers: tileslayer[]` [S]
- `tiles: object`
- `tiletype(x: number, y: number) -> number`
- `time::deltatime: number` [C]
- `time::fixeddeltatime: number`
- `time::fps: number` [C]
- `timereverywhere()` [C]
- `timevar: number`
- `timevar2: number`
- `toall(text: string) -> any` [S]
- `touchfile(path: string) -> number` [S]
- `trace(message: any)`
- `triggeraction(x: number, y: number, name: string, ...params?: any) -> any`
- `triggerclient(type: string, name: string, ...args?: any) -> any` [S]
- `triggerserver(type: string, name: string, ...args?: string) -> any` [C]
- `tstaticvar() -> object`
- `typeof(value: any) -> string`
- `unfreezeplayer()`
- `unset(varname: string)`
- `updateboard(x: number, y: number, width: number, height: number)` [C]
- `updateboard2(x: number, y: number, width: number, height: number)` [S]
- `updateterrain()` [C]
- `uppercase(s: string) -> string`
- `urldecode(text: string) -> string`
- `urlencode(text: string) -> string`
- `vectoradd(a: any, b: any) -> string`
- `vectorcross(a: any, b: any) -> string`
- `vectordist(a: array, b: array) -> number`
- `vectordot(a: any, b: any) -> number`
- `vectorlen(v: any) -> number`
- `vectornormalize(v: any) -> string`
- `vectororthobasis(rotation: any) -> string`
- `vectorscale(v: any, factor: number) -> string`
- `vectorsub(a: any, b: any) -> string`
- `vecx(dir: number) -> number`
- `vecy(dir: number) -> number`
- `VK_0: number`
- `VK_1: number`
- `VK_2: number`
- `VK_3: number`
- `VK_4: number`
- `VK_5: number`
- `VK_6: number`
- `VK_7: number`
- `VK_8: number`
- `VK_9: number`
- `VK_A: number`
- `VK_ACCEPT: number`
- `VK_ADD: number`
- `VK_APPS: number`
- `VK_ATTN: number`
- `VK_B: number`
- `VK_BACK: number`
- `VK_BROWSER_BACK: number`
- `VK_BROWSER_FAVORITES: number`
- `VK_BROWSER_FORWARD: number`
- `VK_BROWSER_HOME: number`
- `VK_BROWSER_REFRESH: number`
- `VK_BROWSER_SEARCH: number`
- `VK_BROWSER_STOP: number`
- `VK_C: number`
- `VK_CANCEL: number`
- `VK_CAPITAL: number`
- `VK_CLEAR: number`
- `VK_CONTROL: number`
- `VK_CONVERT: number`
- `VK_CRSEL: number`
- `VK_D: number`
- `VK_DECIMAL: number`
- `VK_DELETE: number`
- `VK_DIVIDE: number`
- `VK_DOWN: number`
- `VK_E: number`
- `VK_END: number`
- `VK_EREOF: number`
- `VK_ESCAPE: number`
- `VK_EXECUTE: number`
- `VK_EXSEL: number`
- `VK_F: number`
- `VK_F1: number`
- `VK_F10: number`
- `VK_F11: number`
- `VK_F12: number`
- `VK_F13: number`
- `VK_F14: number`
- `VK_F15: number`
- `VK_F16: number`
- `VK_F17: number`
- `VK_F18: number`
- `VK_F19: number`
- `VK_F2: number`
- `VK_F20: number`
- `VK_F21: number`
- `VK_F22: number`
- `VK_F23: number`
- `VK_F24: number`
- `VK_F3: number`
- `VK_F4: number`
- `VK_F5: number`
- `VK_F6: number`
- `VK_F7: number`
- `VK_F8: number`
- `VK_F9: number`
- `VK_FINAL: number`
- `VK_G: number`
- `VK_H: number`
- `VK_HANGUL: number`
- `VK_HANJA: number`
- `VK_HELP: number`
- `VK_HOME: number`
- `VK_I: number`
- `VK_IME_OFF: number`
- `VK_IME_ON: number`
- `VK_INSERT: number`
- `VK_J: number`
- `VK_JUNJA: number`
- `VK_K: number`
- `VK_KANA: number`
- `VK_KANJI: number`
- `VK_L: number`
- `VK_LAUNCH_APP1: number`
- `VK_LAUNCH_APP2: number`
- `VK_LAUNCH_MAIL: number`
- `VK_LAUNCH_MEDIA_SELECT: number`
- `VK_LBUTTON: number`
- `VK_LCONTROL: number`
- `VK_LEFT: number`
- `VK_LMENU: number`
- `VK_LSHIFT: number`
- `VK_LWIN: number`
- `VK_M: number`
- `VK_MBUTTON: number`
- `VK_MEDIA_NEXT_TRACK: number`
- `VK_MEDIA_PLAY_PAUSE: number`
- `VK_MEDIA_PREV_TRACK: number`
- `VK_MEDIA_STOP: number`
- `VK_MENU: number`
- `VK_MODECHANGE: number`
- `VK_MULTIPLY: number`
- `VK_N: number`
- `VK_NEXT: number`
- `VK_NONAME: number`
- `VK_NONCONVERT: number`
- `VK_NUMLOCK: number`
- `VK_NUMPAD0: number`
- `VK_NUMPAD1: number`
- `VK_NUMPAD2: number`
- `VK_NUMPAD3: number`
- `VK_NUMPAD4: number`
- `VK_NUMPAD5: number`
- `VK_NUMPAD6: number`
- `VK_NUMPAD7: number`
- `VK_NUMPAD8: number`
- `VK_NUMPAD9: number`
- `VK_O: number`
- `VK_OEM_1: number`
- `VK_OEM_102: number`
- `VK_OEM_2: number`
- `VK_OEM_3: number`
- `VK_OEM_4: number`
- `VK_OEM_5: number`
- `VK_OEM_6: number`
- `VK_OEM_7: number`
- `VK_OEM_8: number`
- `VK_OEM_CLEAR: number`
- `VK_OEM_COMMA: number`
- `VK_OEM_MINUS: number`
- `VK_OEM_PERIOD: number`
- `VK_OEM_PLUS: number`
- `VK_P: number`
- `VK_PA1: number`
- `VK_PACKET: number`
- `VK_PAUSE: number`
- `VK_PLAY: number`
- `VK_PRINT: number`
- `VK_PRIOR: number`
- `VK_PROCESSKEY: number`
- `VK_Q: number`
- `VK_R: number`
- `VK_RBUTTON: number`
- `VK_RCONTROL: number`
- `VK_RETURN: number`
- `VK_RIGHT: number`
- `VK_RMENU: number`
- `VK_RSHIFT: number`
- `VK_RWIN: number`
- `VK_S: number`
- `VK_SCROLL: number`
- `VK_SELECT: number`
- `VK_SEPARATOR: number`
- `VK_SHIFT: number`
- `VK_SLEEP: number`
- `VK_SNAPSHOT: number`
- `VK_SPACE: number`
- `VK_SUBTRACT: number`
- `VK_T: number`
- `VK_TAB: number`
- `VK_U: number`
- `VK_UP: number`
- `VK_V: number`
- `VK_VOLUME_DOWN: number`
- `VK_VOLUME_MUTE: number`
- `VK_VOLUME_UP: number`
- `VK_W: number`
- `VK_X: number`
- `VK_XBUTTON1: number`
- `VK_XBUTTON2: number`
- `VK_Y: number`
- `VK_Z: number`
- `VK_ZOOM: number`
- `waitfor(object: object, event: string, timeout?: number) -> number`
- `warpto(level: string, x: number, y: number) -> any`
- `wasshooted: boolean` [C]
- `watercolorflags: number` [C]
- `waterheight: number` [C]
- `weapons: weapon[]` [C]
- `weathereffectsenabled: boolean` [C]
- `worldx(screenx: number, screeny: number) -> number` [C]
- `worldy(screenx: number, screeny: number) -> number` [C]
- `wraptext(width: number, delims: string, text: string) -> array`
- `wraptext2(width: number, size: number, breaks: string, text: string) -> array` [C]

### guiaccordionctrl

- `guiaccordionctrl.addrow(id: number) -> guiaccordionentry` [C]
- `guiaccordionctrl.animationtime: number` [C]
- `guiaccordionctrl.backgroundimage: string` [C]
- `guiaccordionctrl.clearrows() -> number` [C]
- `guiaccordionctrl.getselectedrow() -> number` [C]
- `guiaccordionctrl.insertrow(index: number, id: number) -> guiaccordionentry` [C]
- `guiaccordionctrl.onAnimationEnd(index: number)` [C]
- `guiaccordionctrl.onAnimationStart(from: number, to: number)` [C]
- `guiaccordionctrl.removerow(index: number) -> number` [C]
- `guiaccordionctrl.removerowbyid(id: number) -> number` [C]
- `guiaccordionctrl.rowcount() -> number` [C]
- `guiaccordionctrl.rows: guiaccordionentry[]` [C]
- `guiaccordionctrl.selectedrow: number` [C]
- `guiaccordionctrl.setselectedrow(index: number) -> number` [C]

### guiaccordionentry

- `guiaccordionentry.id: number` [C]
- `guiaccordionentry.image: string` [C]

### guianimation

- `guianimation.alpha: number` [C]
- `guianimation.amplitude: number` [C]
- `guianimation.bounds: array` [C]
- `guianimation.currenttime: number` [C]
- `guianimation.delay: number` [C]
- `guianimation.duration: number` [C]
- `guianimation.interval: number` [C]
- `guianimation.rotation: number` [C]
- `guianimation.sound: string` [C]
- `guianimation.tabfirstonshow: boolean` [C]
- `guianimation.timing: string` [C]
- `guianimation.transition: string` [C]

### guibitmapborderctrl

- `guibitmapborderctrl.tile: boolean` [C]

### guibitmapbuttonctrl

- `guibitmapbuttonctrl.bitmap: string` [C]
- `guibitmapbuttonctrl.buttontype: string` [C]
- `guibitmapbuttonctrl.checked: boolean` [C]
- `guibitmapbuttonctrl.gettext() -> string` [C]
- `guibitmapbuttonctrl.groupnum: number` [C]
- `guibitmapbuttonctrl.icon: string` [C]
- `guibitmapbuttonctrl.iconheight: number` [C]
- `guibitmapbuttonctrl.iconwidth: number` [C]
- `guibitmapbuttonctrl.mouseoverbitmap: string` [C]
- `guibitmapbuttonctrl.normalbitmap: string` [C]
- `guibitmapbuttonctrl.pressedbitmap: string` [C]
- `guibitmapbuttonctrl.setbitmap(image: string, state?: number) -> number` [C]
- `guibitmapbuttonctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guibitmapbuttonctrl.settext(text: string) -> number` [C]
- `guibitmapbuttonctrl.stylesection: string` [C]
- `guibitmapbuttonctrl.text: string` [C]

### guibitmapctrl

- `guibitmapctrl.bitmap: string` [C]
- `guibitmapctrl.bitmaprectangle: array` [C]
- `guibitmapctrl.fullbitmap: boolean` [C]
- `guibitmapctrl.offsetx: number` [C]
- `guibitmapctrl.offsety: number` [C]
- `guibitmapctrl.setbitmap(image: string, state?: number) -> number` [C]
- `guibitmapctrl.setvalue(x: number, y: number) -> number` [C]
- `guibitmapctrl.tile: boolean` [C]
- `guibitmapctrl.wrap: boolean` [C]

### guibuttonctrl

- `guibuttonctrl.buttontype: string` [C]
- `guibuttonctrl.checked: boolean` [C]
- `guibuttonctrl.gettext() -> string` [C]
- `guibuttonctrl.groupnum: number` [C]
- `guibuttonctrl.icon: string` [C]
- `guibuttonctrl.iconheight: number` [C]
- `guibuttonctrl.iconwidth: number` [C]
- `guibuttonctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guibuttonctrl.settext(text: string) -> number` [C]
- `guibuttonctrl.stylesection: string` [C]
- `guibuttonctrl.text: string` [C]

### guicheckboxctrl

- `guicheckboxctrl.buttontype: string` [C]
- `guicheckboxctrl.checked: boolean` [C]
- `guicheckboxctrl.gettext() -> string` [C]
- `guicheckboxctrl.getvalue() -> any` [C]
- `guicheckboxctrl.groupnum: number` [C]
- `guicheckboxctrl.icon: string` [C]
- `guicheckboxctrl.iconheight: number` [C]
- `guicheckboxctrl.iconwidth: number` [C]
- `guicheckboxctrl.settext(text: string) -> number` [C]
- `guicheckboxctrl.setvalue(value: any) -> number` [C]
- `guicheckboxctrl.stylesection: string` [C]
- `guicheckboxctrl.text: string` [C]
- `guicheckboxctrl.value: boolean` [C]

### guicontextmenuctrl

- `guicontextmenuctrl.add(text: string, id: number) -> number` [C]
- `guicontextmenuctrl.addrow(id: number, text: string) -> number` [C]
- `guicontextmenuctrl.allowmultipleselections: boolean` [C]
- `guicontextmenuctrl.clear() -> number` [C]
- `guicontextmenuctrl.clearrows() -> number` [C]
- `guicontextmenuctrl.clearselection() -> number` [C]
- `guicontextmenuctrl.clipcolumntext: boolean` [C]
- `guicontextmenuctrl.close() -> number` [C]
- `guicontextmenuctrl.columns: string` [C]
- `guicontextmenuctrl.enumerate: boolean` [C]
- `guicontextmenuctrl.findtext(arg1: string) -> number` [C]
- `guicontextmenuctrl.findtextid(arg1: string) -> number` [C]
- `guicontextmenuctrl.fitparentwidth: boolean` [C]
- `guicontextmenuctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guicontextmenuctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guicontextmenuctrl.getrownumbyid(arg1: number) -> number` [C]
- `guicontextmenuctrl.getselected() -> any` [C]
- `guicontextmenuctrl.getselectedids() -> array` [C]
- `guicontextmenuctrl.getselectedrow() -> number` [C]
- `guicontextmenuctrl.getselectedrows() -> array` [C]
- `guicontextmenuctrl.getselectedtext() -> string` [C]
- `guicontextmenuctrl.groupsortorder: string` [C]
- `guicontextmenuctrl.iconheight: number` [C]
- `guicontextmenuctrl.iconwidth: number` [C]
- `guicontextmenuctrl.insertrow(arg1: number, arg2: number) -> guitextlistentry` [C]
- `guicontextmenuctrl.isidselected(arg1: number) -> boolean` [C]
- `guicontextmenuctrl.isopen() -> boolean` [C]
- `guicontextmenuctrl.isrowselected(arg1: number) -> boolean` [C]
- `guicontextmenuctrl.makevisible(arg1: number) -> number` [C]
- `guicontextmenuctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guicontextmenuctrl.maxpopupheight: number` [C]
- `guicontextmenuctrl.onCancel()` [C]
- `guicontextmenuctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guicontextmenuctrl.onSelect(id: any, text: string, index: number)` [C]
- `guicontextmenuctrl.open(arg1: number, arg2: number) -> number` [C]
- `guicontextmenuctrl.openatmouse() -> number` [C]
- `guicontextmenuctrl.removerow(index: number) -> boolean` [C]
- `guicontextmenuctrl.removerowbyid(arg1: number) -> number` [C]
- `guicontextmenuctrl.resizecell: boolean` [C]
- `guicontextmenuctrl.rowcount() -> number` [C]
- `guicontextmenuctrl.rows: string` [C]
- `guicontextmenuctrl.scrollprofile: string` [C]
- `guicontextmenuctrl.selected: string` [C]
- `guicontextmenuctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guicontextmenuctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guicontextmenuctrl.setselected(id: number) -> number` [C]
- `guicontextmenuctrl.setselectedbyid(arg1: number) -> number` [C]
- `guicontextmenuctrl.setselectedbyids(arg1: string) -> number` [C]
- `guicontextmenuctrl.setselectedbytext(arg1: string) -> number` [C]
- `guicontextmenuctrl.setselectedrow(index: number) -> number` [C]
- `guicontextmenuctrl.setselectedrows(arg1: string) -> number` [C]
- `guicontextmenuctrl.sort() -> number` [C]
- `guicontextmenuctrl.sortcolumn: number` [C]
- `guicontextmenuctrl.sortmode: string` [C]
- `guicontextmenuctrl.sortorder: string` [C]
- `guicontextmenuctrl.textprofile: string` [C]

### guicontrol

- `guicontrol.acceptdropfiles: boolean` [C]
- `guicontrol.active: boolean` [C]
- `guicontrol.addcontrol(control: object) -> number` [C]
- `guicontrol.alpha: number` [C]
- `guicontrol.areaclickpriority: number` [C]
- `guicontrol.awake: boolean` [C]
- `guicontrol.bitmapcache: boolean` [C]
- `guicontrol.blue: number` [C]
- `guicontrol.bounds: array` [C]
- `guicontrol.bringtofront() -> number` [C]
- `guicontrol.canmove: boolean` [C]
- `guicontrol.canresize: boolean` [C]
- `guicontrol.catchevent(target: any, event: string, callback: string) -> number` [C]
- `guicontrol.clearcontrols() -> number` [C]
- `guicontrol.clientextent: array` [C]
- `guicontrol.clientheight: number` [C]
- `guicontrol.clientwidth: number` [C]
- `guicontrol.clipchildren: boolean` [C]
- `guicontrol.clipmove: boolean` [C]
- `guicontrol.cliptobounds: boolean` [C]
- `guicontrol.color: array` [C]
- `guicontrol.controls: string` [C]
- `guicontrol.createanimation() -> guianimation` [C]
- `guicontrol.cursor: string` [C]
- `guicontrol.destroy()` [C]
- `guicontrol.editing: boolean` [C]
- `guicontrol.extent: string` [C]
- `guicontrol.fastchildrender: boolean` [C]
- `guicontrol.findcontrol(arg1: string) -> guicontrol` [C]
- `guicontrol.findobject(name: string) -> guicontrol` [C]
- `guicontrol.firstresponder: guicontrol` [C]
- `guicontrol.flickerbasetime: number` [C]
- `guicontrol.flickering: boolean` [C]
- `guicontrol.flickertime: number` [C]
- `guicontrol.getparent() -> guicontrol` [C]
- `guicontrol.getroot() -> guicontrol` [C]
- `guicontrol.globaltolocalcoord(x: number, y: number) -> array` [C]
- `guicontrol.green: number` [C]
- `guicontrol.height: number` [C]
- `guicontrol.hide() -> number` [C]
- `guicontrol.hint: string` [C]
- `guicontrol.hinttime: number` [C]
- `guicontrol.horizsizing: string` [C]
- `guicontrol.id: number` [C]
- `guicontrol.isactuallyvisible() -> boolean` [C]
- `guicontrol.isfirstresponder() -> boolean` [C]
- `guicontrol.isinanimation: boolean` [C]
- `guicontrol.isininoutanimation: boolean` [C]
- `guicontrol.ismouselocked(arg1: number) -> boolean` [C]
- `guicontrol.layer: number` [C]
- `guicontrol.localtoglobalcoord(x: number, y: number) -> array` [C]
- `guicontrol.lockmousedown: boolean` [C]
- `guicontrol.makefirstresponder(on: boolean) -> number` [C]
- `guicontrol.minextent: string` [C]
- `guicontrol.minsize: string` [C]
- `guicontrol.mode: number` [C]
- `guicontrol.mouselock(arg1: number) -> number` [C]
- `guicontrol.mouseunlock(arg1: number) -> number` [C]
- `guicontrol.mouseunlockall() -> number` [C]
- `guicontrol.name: string` [C]
- `guicontrol.onAction()` [C]
- `guicontrol.onAdd()` [C]
- `guicontrol.onAnimationFinished(transition: string)` [C]
- `guicontrol.onBecomeFirstResponder()` [C]
- `guicontrol.onDefaultStyleChanges(style: string)` [C]
- `guicontrol.onDialogPop()` [C]
- `guicontrol.onDialogPush()` [C]
- `guicontrol.onFirstResponderChanges(control: any)` [C]
- `guicontrol.onHide()` [C]
- `guicontrol.onKeyDown(keycode: number, key: string, modifiers: number)` [C]
- `guicontrol.onKeyUp(keycode: number, key: string, modifiers: number)` [C]
- `guicontrol.onLoseFirstResponder()` [C]
- `guicontrol.onMouseDown(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseDragged(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseEnter(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseLeave(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseMove(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseUp(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseWheelDown(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMouseWheelUp(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onMove(x: number, y: number)` [C]
- `guicontrol.onRemove()` [C]
- `guicontrol.onResize(width: number, height: number)` [C]
- `guicontrol.onRightMouseDown(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onRightMouseDragged(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onRightMouseUp(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onShow()` [C]
- `guicontrol.onSleep()` [C]
- `guicontrol.onStartDrag()` [C]
- `guicontrol.onStopDrag(modifiers: number, x: number, y: number, clicks: number, pointer: number)` [C]
- `guicontrol.onStyleChanges(style: string)` [C]
- `guicontrol.onWake()` [C]
- `guicontrol.parent: string` [C]
- `guicontrol.position: string` [C]
- `guicontrol.profile: string` [C]
- `guicontrol.pushtoback() -> number` [C]
- `guicontrol.red: number` [C]
- `guicontrol.reflow() -> number` [C]
- `guicontrol.removecontrol(control: object) -> boolean` [C]
- `guicontrol.repaint() -> number` [C]
- `guicontrol.resize(x: number, y: number, width: number, height: number) -> number` [C]
- `guicontrol.resizeheight: boolean` [C]
- `guicontrol.resizewidth: boolean` [C]
- `guicontrol.rotation: number` [C]
- `guicontrol.rotationcenter: array` [C]
- `guicontrol.scrolllinex: number` [C]
- `guicontrol.scrollliney: number` [C]
- `guicontrol.scrolltobottom() -> number` [C]
- `guicontrol.scrolltotop() -> number` [C]
- `guicontrol.show() -> number` [C]
- `guicontrol.showhint: boolean` [C]
- `guicontrol.showtop() -> number` [C]
- `guicontrol.sortcontrols() -> number` [C]
- `guicontrol.startdrag() -> number` [C]
- `guicontrol.stopanimations() -> number` [C]
- `guicontrol.stopinoutanimations() -> number` [C]
- `guicontrol.style: string` [C]
- `guicontrol.tabfirst() -> boolean` [C]
- `guicontrol.useownprofile: boolean` [C]
- `guicontrol.vertsizing: string` [C]
- `guicontrol.visible: boolean` [C]
- `guicontrol.width: number` [C]
- `guicontrol.x: number` [C]
- `guicontrol.y: number` [C]

### guicontrolprofile

- `guicontrolprofile.align: string` [C]
- `guicontrolprofile.autosizeheight: boolean` [C]
- `guicontrolprofile.autosizewidth: boolean` [C]
- `guicontrolprofile.backgroundinset: string` [C]
- `guicontrolprofile.bitmap: string` [C]
- `guicontrolprofile.border: number` [C]
- `guicontrolprofile.bordercolor: array` [C]
- `guicontrolprofile.bordercolorhl: array` [C]
- `guicontrolprofile.bordercolorna: array` [C]
- `guicontrolprofile.borderthickness: number` [C]
- `guicontrolprofile.boxextent: string` [C]
- `guicontrolprofile.cankeyfocus: boolean` [C]
- `guicontrolprofile.cursorcolor: array` [C]
- `guicontrolprofile.fillcolor: array` [C]
- `guicontrolprofile.fillcolorhl: array` [C]
- `guicontrolprofile.fillcolorna: array` [C]
- `guicontrolprofile.fillonlynonchildarea: boolean` [C]
- `guicontrolprofile.fixedextent: boolean` [C]
- `guicontrolprofile.focusonshow: boolean` [C]
- `guicontrolprofile.fontcolor: array` [C]
- `guicontrolprofile.fontcolorhl: array` [C]
- `guicontrolprofile.fontcolorlink: array` [C]
- `guicontrolprofile.fontcolorlinkhl: array` [C]
- `guicontrolprofile.fontcolorna: array` [C]
- `guicontrolprofile.fontcolorsel: array` [C]
- `guicontrolprofile.fontsize: number` [C]
- `guicontrolprofile.fontstyle: string` [C]
- `guicontrolprofile.fontstylecontrolwords: string` [C]
- `guicontrolprofile.fontstyleidentifiers: string` [C]
- `guicontrolprofile.fontstylenumbers: string` [C]
- `guicontrolprofile.fontstylestrings: string` [C]
- `guicontrolprofile.fonttype: string` [C]
- `guicontrolprofile.gettextheight() -> number` [C]
- `guicontrolprofile.gettextwidth(text: string) -> number` [C]
- `guicontrolprofile.gradientcolor: string` [C]
- `guicontrolprofile.hasbitmaparray: boolean` [C]
- `guicontrolprofile.justify: string` [C]
- `guicontrolprofile.linespacing: number` [C]
- `guicontrolprofile.modal: boolean` [C]
- `guicontrolprofile.mouseoverselected: boolean` [C]
- `guicontrolprofile.numbersonly: boolean` [C]
- `guicontrolprofile.opaque: boolean` [C]
- `guicontrolprofile.overridestylefont: boolean` [C]
- `guicontrolprofile.preloadfont()` [C]
- `guicontrolprofile.returntab: boolean` [C]
- `guicontrolprofile.shadowcolor: array` [C]
- `guicontrolprofile.shadowoffset: array` [C]
- `guicontrolprofile.soundbuttondown: string` [C]
- `guicontrolprofile.soundbuttonover: string` [C]
- `guicontrolprofile.tab: boolean` [C]
- `guicontrolprofile.textgradient: boolean` [C]
- `guicontrolprofile.textoffset: array` [C]
- `guicontrolprofile.textshadow: boolean` [C]
- `guicontrolprofile.transparency: number` [C]

### guidrawingpanel

- `guidrawingpanel.availablefilters: array` [C]
- `guidrawingpanel.clearall() -> number`
- `guidrawingpanel.clearrectangle(x: number, y: number, w: number, h: number) -> number`
- `guidrawingpanel.drawcurve(x1: number, y1: number, cx: number, cy: number, x2: number, y2: number, width: number, r?: number, g?: number, b?: number, a?: number) -> number`
- `guidrawingpanel.drawimage(x: number, y: number, file: string) -> number`
- `guidrawingpanel.drawimagerectangle(x: number, y: number, file: string, sx: number, sy: number, sw: number, sh: number) -> number`
- `guidrawingpanel.drawimagestretched(x: number, y: number, w: number, h: number, file: string, sx: number, sy: number, sw: number, sh: number) -> number`
- `guidrawingpanel.drawline(x1: number, y1: number, x2: number, y2: number, width: number, r: number, g: number, b: number, a: number) -> number`
- `guidrawingpanel.drawobject(x: number, y: number, object: object) -> number`
- `guidrawingpanel.drawtext(x: number, y: number, text: string, font: string, size: number, r: number, g: number, b: number, a: number) -> number`
- `guidrawingpanel.enablecache: boolean` [C]
- `guidrawingpanel.filterrectangle(x: number, y: number, w: number, h: number, filter: string) -> number`
- `guidrawingpanel.isclear: boolean` [C]
- `guidrawingpanel.maskimage(x: number, y: number, file: string, operation: string) -> boolean`
- `guidrawingpanel.panel: string` [C]
- `guidrawingpanel.parth: number` [C]
- `guidrawingpanel.partw: number` [C]
- `guidrawingpanel.partx: number` [C]
- `guidrawingpanel.party: number` [C]
- `guidrawingpanel.saveimage(file: string) -> number`
- `guidrawingpanel.saveimage2(file: string, bits?: number) -> number`
- `guidrawingpanel.saveimagetostring(file: string) -> string`
- `guidrawingpanel.saveimagetostring2(file: string, bits?: number) -> string`
- `guidrawingpanel.setdrawpalette(colors: string, transparent?: number) -> number`
- `guidrawingpanel.setsize(width: number, height: number)`

### guiframesetctrl

- `guiframesetctrl.autobalance: boolean` [C]
- `guiframesetctrl.bordercolor: string` [C]
- `guiframesetctrl.borderenable: string` [C]
- `guiframesetctrl.bordermovable: string` [C]
- `guiframesetctrl.borderwidth: number` [C]
- `guiframesetctrl.columncount: number` [C]
- `guiframesetctrl.columns: string` [C]
- `guiframesetctrl.framedetails: framedetail[]` [C]
- `guiframesetctrl.frames: string` [C]
- `guiframesetctrl.fudgefactor: number` [C]
- `guiframesetctrl.getcolumncount() -> number` [C]
- `guiframesetctrl.getcolumnoffset(arg1: number) -> number` [C]
- `guiframesetctrl.getrowcount() -> number` [C]
- `guiframesetctrl.getrowoffset(arg1: number) -> number` [C]
- `guiframesetctrl.rowcount: number` [C]
- `guiframesetctrl.rows: string` [C]
- `guiframesetctrl.setcolumncount(arg1: number) -> number` [C]
- `guiframesetctrl.setcolumnoffset(arg1: number, arg2: number) -> number` [C]
- `guiframesetctrl.setrowcount(count: number) -> number` [C]
- `guiframesetctrl.setrowoffset(arg1: number, arg2: number) -> number` [C]

### guigamectrl

- `guigamectrl.isrendering: boolean` [C]

### guimenuctrl

- `guimenuctrl.addmenu(name: string) -> guicontextmenuctrl` [C]
- `guimenuctrl.clearmenus() -> number` [C]
- `guimenuctrl.findmenu(name: string) -> guicontextmenuctrl` [C]
- `guimenuctrl.iconheight: number` [C]
- `guimenuctrl.iconwidth: number` [C]
- `guimenuctrl.menus: guicontextmenuctrl[]` [C]
- `guimenuctrl.onCancel()` [C]
- `guimenuctrl.onIconResized(width: number, height: number)` [C]
- `guimenuctrl.onSelect(menu: string, id: any, text: string, index: number)` [C]
- `guimenuctrl.removemenu(name: string) -> number` [C]
- `guimenuctrl.seticonsize(width: number, height: number) -> number` [C]

### guimltextctrl

- `guimltextctrl.addtext(text: string, replace: boolean) -> number` [C]
- `guimltextctrl.allowcolorchars: boolean` [C]
- `guimltextctrl.allowedtags: string` [C]
- `guimltextctrl.cleartext() -> number` [C]
- `guimltextctrl.cursorposition: number` [C]
- `guimltextctrl.deniedsound: string` [C]
- `guimltextctrl.deselecttext() -> number` [C]
- `guimltextctrl.disallowedtags: string` [C]
- `guimltextctrl.findtext(text: string, flags?: number) -> number` [C]
- `guimltextctrl.findtextat(arg1: string, arg2: number, arg3: number) -> number` [C]
- `guimltextctrl.getcolumnandlineofposition(arg1: number) -> string` [C]
- `guimltextctrl.getcursorline() -> number` [C]
- `guimltextctrl.getline(arg1: number) -> string` [C]
- `guimltextctrl.getlinecount() -> number` [C]
- `guimltextctrl.getlines() -> array` [C]
- `guimltextctrl.getselectedlength() -> number` [C]
- `guimltextctrl.getselectedposition() -> number` [C]
- `guimltextctrl.gettext() -> string` [C]
- `guimltextctrl.htmlcompatibility: boolean` [C]
- `guimltextctrl.htmllinks: boolean` [C]
- `guimltextctrl.maxchars: number` [C]
- `guimltextctrl.onCursorLineChanged(line: number)` [C]
- `guimltextctrl.onReflow(width: number, height: number)` [C]
- `guimltextctrl.onRightSelectTag(tag: string)` [C]
- `guimltextctrl.onSelectTag(tag: string)` [C]
- `guimltextctrl.onURL(href: string)` [C]
- `guimltextctrl.parsetags: boolean` [C]
- `guimltextctrl.plaintext: string` [C]
- `guimltextctrl.replacetext(arg1: string, arg2: string, arg3: number) -> number` [C]
- `guimltextctrl.scrolltoline(arg1: number) -> number` [C]
- `guimltextctrl.scrolltoposition(arg1: number) -> number` [C]
- `guimltextctrl.scrolltotag(tag: string) -> boolean` [C]
- `guimltextctrl.selecttext(arg1: number, arg2: number) -> boolean` [C]
- `guimltextctrl.setcursorcolumnandline(column: number, line: number) -> number` [C]
- `guimltextctrl.setlines(arg1: object) -> number` [C]
- `guimltextctrl.setscrolltop(position: number) -> number` [C]
- `guimltextctrl.settext(text: string) -> number` [C]
- `guimltextctrl.syntaxhighlighting: boolean` [C]
- `guimltextctrl.text: string` [C]
- `guimltextctrl.trimhorizontally() -> number` [C]
- `guimltextctrl.urlbase: string` [C]
- `guimltextctrl.wordwrap: boolean` [C]

### guimltexteditctrl

- `guimltexteditctrl.addtext(text: string, replace: boolean) -> number` [C]
- `guimltexteditctrl.allowcolorchars: boolean` [C]
- `guimltexteditctrl.allowedtags: string` [C]
- `guimltexteditctrl.autoindenting: boolean` [C]
- `guimltexteditctrl.clear() -> number` [C]
- `guimltexteditctrl.cleartext() -> number` [C]
- `guimltexteditctrl.cursorposition: number` [C]
- `guimltexteditctrl.deniedsound: string` [C]
- `guimltexteditctrl.deselecttext() -> number` [C]
- `guimltexteditctrl.disallowedtags: string` [C]
- `guimltexteditctrl.findtext(arg1: string) -> number` [C]
- `guimltexteditctrl.findtextat(arg1: string, arg2: number, arg3: number) -> number` [C]
- `guimltexteditctrl.getcolumnandlineofposition(arg1: number) -> string` [C]
- `guimltexteditctrl.getcursorline() -> number` [C]
- `guimltexteditctrl.getline(arg1: number) -> string` [C]
- `guimltexteditctrl.getlinecount() -> number` [C]
- `guimltexteditctrl.getlines() -> array` [C]
- `guimltexteditctrl.getselectedlength() -> number` [C]
- `guimltexteditctrl.getselectedposition() -> number` [C]
- `guimltexteditctrl.gettext() -> string` [C]
- `guimltexteditctrl.htmlcompatibility: boolean` [C]
- `guimltexteditctrl.htmllinks: boolean` [C]
- `guimltexteditctrl.maxchars: number` [C]
- `guimltexteditctrl.maxlength: number` [C]
- `guimltexteditctrl.onCursorLineChanged(line: number)` [C]
- `guimltexteditctrl.onReflow(width: number, height: number)` [C]
- `guimltexteditctrl.onRightSelectTag(tag: string)` [C]
- `guimltexteditctrl.onSelectTag(tag: string)` [C]
- `guimltexteditctrl.onTextEditStart()` [C]
- `guimltexteditctrl.parsetags: boolean` [C]
- `guimltexteditctrl.plaintext: string` [C]
- `guimltexteditctrl.replacetext(arg1: string, arg2: string, arg3: number) -> number` [C]
- `guimltexteditctrl.scrolltoline(arg1: number) -> number` [C]
- `guimltexteditctrl.scrolltoposition(arg1: number) -> number` [C]
- `guimltexteditctrl.scrolltotag(tag: string) -> boolean` [C]
- `guimltexteditctrl.selectall() -> number` [C]
- `guimltexteditctrl.selecttext(arg1: number, arg2: number) -> boolean` [C]
- `guimltexteditctrl.setcursorcolumnandline(arg1: number, arg2: number) -> number` [C]
- `guimltexteditctrl.setlines(arg1: object) -> number` [C]
- `guimltexteditctrl.setscrolltop(position: number) -> number` [C]
- `guimltexteditctrl.settext(text: string) -> number` [C]
- `guimltexteditctrl.showcursor: boolean` [C]
- `guimltexteditctrl.syntaxhighlighting: boolean` [C]
- `guimltexteditctrl.tabspaces: number` [C]
- `guimltexteditctrl.text: string` [C]
- `guimltexteditctrl.trimhorizontally() -> number` [C]
- `guimltexteditctrl.undostacksize: number` [C]
- `guimltexteditctrl.urlbase: string` [C]
- `guimltexteditctrl.wordwrap: boolean` [C]

### guipopupeditctrl

- `guipopupeditctrl.add(text: string, id: number) -> number` [C]
- `guipopupeditctrl.addrow(id: number, text: string) -> number` [C]
- `guipopupeditctrl.addtext(text: string, replace: boolean) -> number` [C]
- `guipopupeditctrl.allowmultipleselections: boolean` [C]
- `guipopupeditctrl.clear() -> number` [C]
- `guipopupeditctrl.clearrows() -> number` [C]
- `guipopupeditctrl.clearselection() -> number` [C]
- `guipopupeditctrl.clipcolumntext: boolean` [C]
- `guipopupeditctrl.close() -> number` [C]
- `guipopupeditctrl.columns: string` [C]
- `guipopupeditctrl.enumerate: boolean` [C]
- `guipopupeditctrl.findtext(arg1: string) -> number` [C]
- `guipopupeditctrl.findtextid(arg1: string) -> number` [C]
- `guipopupeditctrl.fitparentwidth: boolean` [C]
- `guipopupeditctrl.forceclose() -> number` [C]
- `guipopupeditctrl.forceonaction() -> number` [C]
- `guipopupeditctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guipopupeditctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guipopupeditctrl.getrownumbyid(arg1: number) -> number` [C]
- `guipopupeditctrl.getselected() -> any` [C]
- `guipopupeditctrl.getselectedids() -> array` [C]
- `guipopupeditctrl.getselectedrow() -> number` [C]
- `guipopupeditctrl.getselectedrows() -> array` [C]
- `guipopupeditctrl.getselectedtext() -> string` [C]
- `guipopupeditctrl.groupsortorder: string` [C]
- `guipopupeditctrl.iconheight: number` [C]
- `guipopupeditctrl.iconwidth: number` [C]
- `guipopupeditctrl.insertrow(arg1: number, arg2: number) -> guitextlistentry` [C]
- `guipopupeditctrl.isidselected(arg1: number) -> boolean` [C]
- `guipopupeditctrl.isopen() -> boolean` [C]
- `guipopupeditctrl.isrowselected(arg1: number) -> boolean` [C]
- `guipopupeditctrl.makevisible(arg1: number) -> number` [C]
- `guipopupeditctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guipopupeditctrl.maxpopupheight: number` [C]
- `guipopupeditctrl.onCancel()` [C]
- `guipopupeditctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guipopupeditctrl.onSelect(id: any, text: string, index: number)` [C]
- `guipopupeditctrl.onTextEditStart()` [C]
- `guipopupeditctrl.open(arg1: number, arg2: number) -> number` [C]
- `guipopupeditctrl.openatmouse() -> number` [C]
- `guipopupeditctrl.removerow(index: number) -> boolean` [C]
- `guipopupeditctrl.removerowbyid(arg1: number) -> number` [C]
- `guipopupeditctrl.resizecell: boolean` [C]
- `guipopupeditctrl.rowcount() -> number` [C]
- `guipopupeditctrl.rows: string` [C]
- `guipopupeditctrl.scrollprofile: string` [C]
- `guipopupeditctrl.selected: string` [C]
- `guipopupeditctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guipopupeditctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guipopupeditctrl.setselected(id: number) -> number` [C]
- `guipopupeditctrl.setselectedbyid(arg1: number) -> number` [C]
- `guipopupeditctrl.setselectedbyids(arg1: string) -> number` [C]
- `guipopupeditctrl.setselectedbytext(arg1: string) -> number` [C]
- `guipopupeditctrl.setselectedrow(index: number) -> number` [C]
- `guipopupeditctrl.setselectedrows(arg1: string) -> number` [C]
- `guipopupeditctrl.sort() -> number` [C]
- `guipopupeditctrl.sortcolumn: number` [C]
- `guipopupeditctrl.sortmode: string` [C]
- `guipopupeditctrl.sortorder: string` [C]
- `guipopupeditctrl.text: string` [C]
- `guipopupeditctrl.textprofile: string` [C]

### guipopupmenuctrl

- `guipopupmenuctrl.add(text: string, id: number) -> number` [C]
- `guipopupmenuctrl.addrow(id: number, text: string) -> number` [C]
- `guipopupmenuctrl.addtext(text: string, id: number) -> number` [C]
- `guipopupmenuctrl.allowmultipleselections: boolean` [C]
- `guipopupmenuctrl.clear() -> number` [C]
- `guipopupmenuctrl.clearrows() -> number` [C]
- `guipopupmenuctrl.clearselection() -> number` [C]
- `guipopupmenuctrl.clipcolumntext: boolean` [C]
- `guipopupmenuctrl.close() -> number` [C]
- `guipopupmenuctrl.columns: string` [C]
- `guipopupmenuctrl.enumerate: boolean` [C]
- `guipopupmenuctrl.findtext(arg1: string) -> number` [C]
- `guipopupmenuctrl.findtextid(arg1: string) -> number` [C]
- `guipopupmenuctrl.fitparentwidth: boolean` [C]
- `guipopupmenuctrl.forceclose() -> number` [C]
- `guipopupmenuctrl.forceonaction() -> number` [C]
- `guipopupmenuctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guipopupmenuctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guipopupmenuctrl.getrownumbyid(arg1: number) -> number` [C]
- `guipopupmenuctrl.getselected() -> any` [C]
- `guipopupmenuctrl.getselectedids() -> array` [C]
- `guipopupmenuctrl.getselectedrow() -> number` [C]
- `guipopupmenuctrl.getselectedrows() -> array` [C]
- `guipopupmenuctrl.getselectedtext() -> string` [C]
- `guipopupmenuctrl.groupsortorder: string` [C]
- `guipopupmenuctrl.iconheight: number` [C]
- `guipopupmenuctrl.iconwidth: number` [C]
- `guipopupmenuctrl.insertrow(arg1: number, arg2: number) -> guitextlistentry` [C]
- `guipopupmenuctrl.isidselected(arg1: number) -> boolean` [C]
- `guipopupmenuctrl.isopen() -> boolean` [C]
- `guipopupmenuctrl.isrowselected(arg1: number) -> boolean` [C]
- `guipopupmenuctrl.makevisible(arg1: number) -> number` [C]
- `guipopupmenuctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guipopupmenuctrl.maxpopupheight: number` [C]
- `guipopupmenuctrl.onCancel()` [C]
- `guipopupmenuctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guipopupmenuctrl.onSelect(id: any, text: string, index: number)` [C]
- `guipopupmenuctrl.open(arg1: number, arg2: number) -> number` [C]
- `guipopupmenuctrl.openatmouse() -> number` [C]
- `guipopupmenuctrl.removerow(index: number) -> boolean` [C]
- `guipopupmenuctrl.removerowbyid(arg1: number) -> number` [C]
- `guipopupmenuctrl.resizecell: boolean` [C]
- `guipopupmenuctrl.rowcount() -> number` [C]
- `guipopupmenuctrl.rows: string` [C]
- `guipopupmenuctrl.scrollprofile: string` [C]
- `guipopupmenuctrl.selected: string` [C]
- `guipopupmenuctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guipopupmenuctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guipopupmenuctrl.setselected(id: number) -> number` [C]
- `guipopupmenuctrl.setselectedbyid(arg1: number) -> number` [C]
- `guipopupmenuctrl.setselectedbyids(arg1: string) -> number` [C]
- `guipopupmenuctrl.setselectedbytext(arg1: string) -> number` [C]
- `guipopupmenuctrl.setselectedrow(index: number) -> number` [C]
- `guipopupmenuctrl.setselectedrows(arg1: string) -> number` [C]
- `guipopupmenuctrl.sort() -> number` [C]
- `guipopupmenuctrl.sortcolumn: number` [C]
- `guipopupmenuctrl.sortmode: string` [C]
- `guipopupmenuctrl.sortorder: string` [C]
- `guipopupmenuctrl.text: string` [C]
- `guipopupmenuctrl.textprofile: string` [C]

### guiprogressctrl

- `guiprogressctrl.getvalue() -> any` [C]
- `guiprogressctrl.progress: number` [C]
- `guiprogressctrl.value: number` [C]

### guiradioctrl

- `guiradioctrl.buttontype: string` [C]
- `guiradioctrl.checked: boolean` [C]
- `guiradioctrl.gettext() -> string` [C]
- `guiradioctrl.getvalue() -> any` [C]
- `guiradioctrl.groupnum: number` [C]
- `guiradioctrl.icon: string` [C]
- `guiradioctrl.iconheight: number` [C]
- `guiradioctrl.iconwidth: number` [C]
- `guiradioctrl.settext(text: string) -> number` [C]
- `guiradioctrl.setvalue(value: any) -> number` [C]
- `guiradioctrl.stylesection: string` [C]
- `guiradioctrl.text: string` [C]
- `guiradioctrl.value: boolean` [C]

### guiscrollctrl

- `guiscrollctrl.childmargin: string` [C]
- `guiscrollctrl.constantthumbheight: boolean` [C]
- `guiscrollctrl.hscrollbar: string` [C]
- `guiscrollctrl.onScrolled(x: number, y: number, dx: number, dy: number)` [C]
- `guiscrollctrl.scrolldelta(arg1: number, arg2: number) -> number` [C]
- `guiscrollctrl.scrollpos: string` [C]
- `guiscrollctrl.scrollrectvisible(arg1: number, arg2: number, arg3: number, arg4: number) -> number` [C]
- `guiscrollctrl.scrollto(arg1: number, arg2: number) -> number` [C]
- `guiscrollctrl.tile: boolean` [C]
- `guiscrollctrl.vscrollbar: string` [C]
- `guiscrollctrl.wheelscrolllines: number` [C]
- `guiscrollctrl.willfirstrespond: boolean` [C]

### guishowimgctrl

- `guishowimgctrl.ani: string` [C]
- `guishowimgctrl.blue: number` [C]
- `guishowimgctrl.dir: number` [C]
- `guishowimgctrl.font: string` [C]
- `guishowimgctrl.green: number` [C]
- `guishowimgctrl.image: string` [C]
- `guishowimgctrl.mode: number` [C]
- `guishowimgctrl.offsetx: number` [C]
- `guishowimgctrl.offsety: number` [C]
- `guishowimgctrl.red: number` [C]
- `guishowimgctrl.rotation: number` [C]
- `guishowimgctrl.showimg: string` [C]
- `guishowimgctrl.stretchx: number` [C]
- `guishowimgctrl.stretchy: number` [C]
- `guishowimgctrl.style: string` [C]
- `guishowimgctrl.text: string` [C]
- `guishowimgctrl.zoom: number` [C]

### guisliderctrl

- `guisliderctrl.getvalue() -> any` [C]
- `guisliderctrl.onAction(value: number)` [C]
- `guisliderctrl.onReleaseSlider(value: number)` [C]
- `guisliderctrl.range: string` [C]
- `guisliderctrl.setvalue(value: any) -> number` [C]
- `guisliderctrl.ticks: number` [C]
- `guisliderctrl.value: number` [C]

### guislideshowctrl

- `guislideshowctrl.addrow(id: number) -> guislideshowentry` [C]
- `guislideshowctrl.animationtime: number` [C]
- `guislideshowctrl.clearrows() -> number` [C]
- `guislideshowctrl.getselectedrow() -> number` [C]
- `guislideshowctrl.insertrow(index: number, id: number) -> guislideshowentry` [C]
- `guislideshowctrl.isendless: boolean` [C]
- `guislideshowctrl.onAnimationEnd(index: number)` [C]
- `guislideshowctrl.onAnimationStart(from: number, to: number)` [C]
- `guislideshowctrl.overlayimage: string` [C]
- `guislideshowctrl.removerow(index: number) -> number` [C]
- `guislideshowctrl.removerowbyid(id: number) -> number` [C]
- `guislideshowctrl.rowcount() -> number` [C]
- `guislideshowctrl.rows: guislideshowentry[]` [C]
- `guislideshowctrl.scrollonvisible: boolean` [C]
- `guislideshowctrl.selectedrow: number` [C]
- `guislideshowctrl.setselectedrow(index: number) -> number` [C]

### guislideshowentry

- `guislideshowentry.id: number` [C]
- `guislideshowentry.image: string` [C]

### guistartmenuctrl

- `guistartmenuctrl.add(text: string, id: number) -> number` [C]
- `guistartmenuctrl.addrow(id: number, text: string) -> number` [C]
- `guistartmenuctrl.allowmultipleselections: boolean` [C]
- `guistartmenuctrl.clear() -> number` [C]
- `guistartmenuctrl.clearrows() -> number` [C]
- `guistartmenuctrl.clearselection() -> number` [C]
- `guistartmenuctrl.clipcolumntext: boolean` [C]
- `guistartmenuctrl.close() -> number` [C]
- `guistartmenuctrl.columns: string` [C]
- `guistartmenuctrl.enumerate: boolean` [C]
- `guistartmenuctrl.findtext(arg1: string) -> number` [C]
- `guistartmenuctrl.findtextid(arg1: string) -> number` [C]
- `guistartmenuctrl.fitparentwidth: boolean` [C]
- `guistartmenuctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guistartmenuctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guistartmenuctrl.getrownumbyid(arg1: number) -> number` [C]
- `guistartmenuctrl.getselected() -> any` [C]
- `guistartmenuctrl.getselectedids() -> array` [C]
- `guistartmenuctrl.getselectedrow() -> number` [C]
- `guistartmenuctrl.getselectedrows() -> array` [C]
- `guistartmenuctrl.getselectedtext() -> string` [C]
- `guistartmenuctrl.gettext() -> string` [C]
- `guistartmenuctrl.groupsortorder: string` [C]
- `guistartmenuctrl.iconheight: number` [C]
- `guistartmenuctrl.iconwidth: number` [C]
- `guistartmenuctrl.insertrow(arg1: number, arg2: number) -> guitextlistentry` [C]
- `guistartmenuctrl.isidselected(arg1: number) -> boolean` [C]
- `guistartmenuctrl.isopen() -> boolean` [C]
- `guistartmenuctrl.isrowselected(arg1: number) -> boolean` [C]
- `guistartmenuctrl.makevisible(arg1: number) -> number` [C]
- `guistartmenuctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guistartmenuctrl.maxchars: number` [C]
- `guistartmenuctrl.maxpopupheight: number` [C]
- `guistartmenuctrl.onCancel()` [C]
- `guistartmenuctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guistartmenuctrl.onSelect(id: any, text: string, index: number)` [C]
- `guistartmenuctrl.onTextChanged(text: string)` [C]
- `guistartmenuctrl.open(arg1: number, arg2: number) -> number` [C]
- `guistartmenuctrl.openatmouse() -> number` [C]
- `guistartmenuctrl.removerow(index: number) -> boolean` [C]
- `guistartmenuctrl.removerowbyid(arg1: number) -> number` [C]
- `guistartmenuctrl.resizecell: boolean` [C]
- `guistartmenuctrl.rowcount() -> number` [C]
- `guistartmenuctrl.rows: string` [C]
- `guistartmenuctrl.scrollprofile: string` [C]
- `guistartmenuctrl.selected: string` [C]
- `guistartmenuctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guistartmenuctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guistartmenuctrl.setselected(id: number) -> number` [C]
- `guistartmenuctrl.setselectedbyid(arg1: number) -> number` [C]
- `guistartmenuctrl.setselectedbyids(arg1: string) -> number` [C]
- `guistartmenuctrl.setselectedbytext(arg1: string) -> number` [C]
- `guistartmenuctrl.setselectedrow(index: number) -> number` [C]
- `guistartmenuctrl.setselectedrows(arg1: string) -> number` [C]
- `guistartmenuctrl.settext(text: string)` [C]
- `guistartmenuctrl.sort() -> number` [C]
- `guistartmenuctrl.sortcolumn: number` [C]
- `guistartmenuctrl.sortmode: string` [C]
- `guistartmenuctrl.sortorder: string` [C]
- `guistartmenuctrl.stylesection: string` [C]
- `guistartmenuctrl.text: string` [C]
- `guistartmenuctrl.textprofile: string` [C]

### guistretchctrl

- `guistretchctrl.clientextent: string` [C]
- `guistretchctrl.clientheight: number` [C]
- `guistretchctrl.clientwidth: number` [C]

### guitabctrl

- `guitabctrl.add(text: string, id: number) -> number` [C]
- `guitabctrl.addrow(id: number, text: string) -> number` [C]
- `guitabctrl.clear() -> number` [C]
- `guitabctrl.clearrows() -> number` [C]
- `guitabctrl.clearselection() -> number` [C]
- `guitabctrl.findtext(arg1: string) -> number` [C]
- `guitabctrl.findtextid(arg1: string) -> number` [C]
- `guitabctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guitabctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guitabctrl.getrownumbyid(arg1: number) -> number` [C]
- `guitabctrl.getselected() -> any` [C]
- `guitabctrl.getselectedid() -> number` [C]
- `guitabctrl.getselectedids() -> array` [C]
- `guitabctrl.getselectedrow() -> number` [C]
- `guitabctrl.getselectedrows() -> array` [C]
- `guitabctrl.getselectedtext() -> string` [C]
- `guitabctrl.iconheight: number` [C]
- `guitabctrl.iconwidth: number` [C]
- `guitabctrl.insertrow(index: number, id: number, text?: string) -> guitabctrlentry` [C]
- `guitabctrl.isidselected(arg1: number) -> boolean` [C]
- `guitabctrl.isrowselected(arg1: number) -> boolean` [C]
- `guitabctrl.leveling: number` [C]
- `guitabctrl.makevisible(arg1: number) -> number` [C]
- `guitabctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guitabctrl.maxvisibletabs: number` [C]
- `guitabctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guitabctrl.onSelect(id: any, text: string, index: number)` [C]
- `guitabctrl.overlapwidth: number` [C]
- `guitabctrl.removerow(index: number) -> boolean` [C]
- `guitabctrl.removerowbyid(arg1: number) -> number` [C]
- `guitabctrl.rowcount() -> number` [C]
- `guitabctrl.rows: string` [C]
- `guitabctrl.selected: string` [C]
- `guitabctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guitabctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guitabctrl.setselected(id: number) -> number` [C]
- `guitabctrl.setselectedbyid(arg1: number) -> number` [C]
- `guitabctrl.setselectedbyids(arg1: string) -> number` [C]
- `guitabctrl.setselectedbytext(arg1: string) -> number` [C]
- `guitabctrl.setselectedrow(index: number) -> number` [C]
- `guitabctrl.setselectedrows(arg1: string) -> number` [C]
- `guitabctrl.sort() -> number` [C]
- `guitabctrl.tabwidth: number` [C]
- `guitabctrl.text: string` [C]

### guitabctrlentry

- `guitabctrlentry.gettext() -> string` [C]
- `guitabctrlentry.hint: string` [C]
- `guitabctrlentry.id: number` [C]
- `guitabctrlentry.settext(text: string) -> number` [C]
- `guitabctrlentry.text: string` [C]

### guitextctrl

- `guitextctrl.gettext() -> string` [C]
- `guitextctrl.maxchars: number` [C]
- `guitextctrl.settext(text: string) -> number` [C]
- `guitextctrl.stylesection: string` [C]
- `guitextctrl.text: string` [C]

### guitexteditctrl

- `guitexteditctrl.clear() -> number` [C]
- `guitexteditctrl.deniedsound: string` [C]
- `guitexteditctrl.gettext() -> string` [C]
- `guitexteditctrl.getvalue() -> any` [C]
- `guitexteditctrl.historysize: number` [C]
- `guitexteditctrl.inputtype: string` [C]
- `guitexteditctrl.maxchars: number` [C]
- `guitexteditctrl.maxlength: number` [C]
- `guitexteditctrl.numbersonly: boolean` [C]
- `guitexteditctrl.onAction(text: string)` [C]
- `guitexteditctrl.onTabComplete(shift: boolean)` [C]
- `guitexteditctrl.onTextEditStart()` [C]
- `guitexteditctrl.password: boolean` [C]
- `guitexteditctrl.selectall() -> number` [C]
- `guitexteditctrl.setselection(arg1: number, arg2: number) -> number` [C]
- `guitexteditctrl.settext(text: string) -> number` [C]
- `guitexteditctrl.showcursor: boolean` [C]
- `guitexteditctrl.stylesection: string` [C]
- `guitexteditctrl.tabcomplete: boolean` [C]
- `guitexteditctrl.text: string` [C]
- `guitexteditctrl.undo() -> number` [C]

### guitexteditsliderctrl

- `guitexteditsliderctrl.allowedit: boolean` [C]
- `guitexteditsliderctrl.clear() -> number` [C]
- `guitexteditsliderctrl.deniedsound: string` [C]
- `guitexteditsliderctrl.format: string` [C]
- `guitexteditsliderctrl.getvalue() -> any` [C]
- `guitexteditsliderctrl.historysize: number` [C]
- `guitexteditsliderctrl.increment: number` [C]
- `guitexteditsliderctrl.inputtype: string` [C]
- `guitexteditsliderctrl.maxchars: number` [C]
- `guitexteditsliderctrl.maxlength: number` [C]
- `guitexteditsliderctrl.numbersonly: boolean` [C]
- `guitexteditsliderctrl.onAction(value: number)` [C]
- `guitexteditsliderctrl.onTabComplete(shift: boolean)` [C]
- `guitexteditsliderctrl.onTextEditStart()` [C]
- `guitexteditsliderctrl.password: boolean` [C]
- `guitexteditsliderctrl.range: string` [C]
- `guitexteditsliderctrl.selectall() -> number` [C]
- `guitexteditsliderctrl.setselection(arg1: number, arg2: number) -> number` [C]
- `guitexteditsliderctrl.settext(text: string) -> number` [C]
- `guitexteditsliderctrl.setvalue(value: any) -> number` [C]
- `guitexteditsliderctrl.showcursor: boolean` [C]
- `guitexteditsliderctrl.stylesection: string` [C]
- `guitexteditsliderctrl.tabcomplete: boolean` [C]
- `guitexteditsliderctrl.text: string` [C]
- `guitexteditsliderctrl.undo() -> number` [C]
- `guitexteditsliderctrl.value: number` [C]

### guitextlistctrl

- `guitextlistctrl.addrow(id: number, text: string) -> number` [C]
- `guitextlistctrl.allowmultipleselections: boolean` [C]
- `guitextlistctrl.clear() -> number` [C]
- `guitextlistctrl.clearrows() -> number` [C]
- `guitextlistctrl.clearselection() -> number` [C]
- `guitextlistctrl.clipcolumntext: boolean` [C]
- `guitextlistctrl.columns: string` [C]
- `guitextlistctrl.enumerate: boolean` [C]
- `guitextlistctrl.findtext(arg1: string) -> number` [C]
- `guitextlistctrl.findtextid(arg1: string) -> number` [C]
- `guitextlistctrl.fitparentwidth: boolean` [C]
- `guitextlistctrl.getrowatpoint(arg1: number, arg2: number) -> number` [C]
- `guitextlistctrl.getrowidatpoint(arg1: number, arg2: number) -> number` [C]
- `guitextlistctrl.getrownumbyid(arg1: number) -> number` [C]
- `guitextlistctrl.getselectedid() -> number` [C]
- `guitextlistctrl.getselectedids() -> array` [C]
- `guitextlistctrl.getselectedrow() -> number` [C]
- `guitextlistctrl.getselectedrows() -> array` [C]
- `guitextlistctrl.getselectedtext() -> string` [C]
- `guitextlistctrl.groupsortorder: string` [C]
- `guitextlistctrl.iconheight: number` [C]
- `guitextlistctrl.iconwidth: number` [C]
- `guitextlistctrl.insertrow(index: number, id: number, text?: string) -> guitextlistentry` [C]
- `guitextlistctrl.isidselected(arg1: number) -> boolean` [C]
- `guitextlistctrl.isrowselected(arg1: number) -> boolean` [C]
- `guitextlistctrl.makevisible(arg1: number) -> number` [C]
- `guitextlistctrl.makevisiblebyid(arg1: number) -> number` [C]
- `guitextlistctrl.onDblClick(id: any, text: string, index: number)` [C]
- `guitextlistctrl.onDeleteKey(id: any, text: string, index: number)` [C]
- `guitextlistctrl.onDeselect(id: any, text: string, index: number)` [C]
- `guitextlistctrl.onIconResized(width: number, height: number)` [C]
- `guitextlistctrl.onMouseOverCell(id: number, text: string, index: number)` [C]
- `guitextlistctrl.onOpenMenu(id: number, text: string, index: number)` [C]
- `guitextlistctrl.onSelect(id: any, text: string, index: number)` [C]
- `guitextlistctrl.removerow(index: number) -> boolean` [C]
- `guitextlistctrl.removerowbyid(arg1: number) -> number` [C]
- `guitextlistctrl.resizecell: boolean` [C]
- `guitextlistctrl.rowcount() -> number` [C]
- `guitextlistctrl.rows: string` [C]
- `guitextlistctrl.selected: string` [C]
- `guitextlistctrl.selectedid: number` [C]
- `guitextlistctrl.selectedrow: number` [C]
- `guitextlistctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guitextlistctrl.setrowactivebyid(arg1: number, arg2: boolean) -> number` [C]
- `guitextlistctrl.setrowbyid(id: number, text: string) -> boolean` [C]
- `guitextlistctrl.setrowcount(count: number) -> number` [C]
- `guitextlistctrl.setselectedbyid(arg1: number) -> number` [C]
- `guitextlistctrl.setselectedbyids(arg1: string) -> number` [C]
- `guitextlistctrl.setselectedbytext(arg1: string) -> number` [C]
- `guitextlistctrl.setselectedid(id: number) -> number` [C]
- `guitextlistctrl.setselectedrow(index: number) -> number` [C]
- `guitextlistctrl.setselectedrows(arg1: string) -> number` [C]
- `guitextlistctrl.sort() -> number` [C]
- `guitextlistctrl.sortcolumn: number` [C]
- `guitextlistctrl.sortmode: string` [C]
- `guitextlistctrl.sortorder: string` [C]

### guitextlistentry

- `guitextlistentry.active: boolean` [C]
- `guitextlistentry.extent: string` [C]
- `guitextlistentry.flickering: boolean` [C]
- `guitextlistentry.flickertime: number` [C]
- `guitextlistentry.gettext() -> string` [C]
- `guitextlistentry.height: number` [C]
- `guitextlistentry.hint: string` [C]
- `guitextlistentry.id: number` [C]
- `guitextlistentry.image: number` [C]
- `guitextlistentry.position: string` [C]
- `guitextlistentry.profile: guicontrolprofile` [C]
- `guitextlistentry.selectedimage: number` [C]
- `guitextlistentry.settext(text: string) -> number` [C]
- `guitextlistentry.sortgroup: number` [C]
- `guitextlistentry.sortvalue: number` [C]
- `guitextlistentry.useownprofile: boolean` [C]
- `guitextlistentry.width: number` [C]
- `guitextlistentry.x: number` [C]
- `guitextlistentry.y: number` [C]

### guitilesctrl

- `guitilesctrl.camerabounds: string` [C]
- `guitilesctrl.cameraposition: string` [C]
- `guitilesctrl.camerasize: string` [C]
- `guitilesctrl.loadtilemap(level: string, datablocks: string) -> object` [C]
- `guitilesctrl.loadtilemapxml(path: string) -> object` [C]
- `guitilesctrl.tilemap: object` [C]

### guitreeviewctrl

- `guitreeviewctrl.addlines(arg1: object, arg2: boolean) -> number` [C]
- `guitreeviewctrl.addnode(name: string) -> number` [C]
- `guitreeviewctrl.addnodebypath(path: string, value: string) -> number` [C]
- `guitreeviewctrl.addvars(arg1: object, arg2: boolean) -> number` [C]
- `guitreeviewctrl.boxwidth: number` [C]
- `guitreeviewctrl.clearnodes() -> number` [C]
- `guitreeviewctrl.clearrows() -> number` [C]
- `guitreeviewctrl.clipcolumntext: boolean` [C]
- `guitreeviewctrl.columns: string` [C]
- `guitreeviewctrl.expandondoubleclick: boolean` [C]
- `guitreeviewctrl.firstlinevisible: boolean` [C]
- `guitreeviewctrl.fitparentwidth: boolean` [C]
- `guitreeviewctrl.getfullname(arg1: string) -> string` [C]
- `guitreeviewctrl.getnode(arg1: string) -> guitreeviewnode` [C]
- `guitreeviewctrl.getnodeat(arg1: number, arg2: number) -> guitreeviewnode` [C]
- `guitreeviewctrl.getnodebypath(arg1: string, arg2: string) -> guitreeviewnode` [C]
- `guitreeviewctrl.getselected() -> any` [C]
- `guitreeviewctrl.getselectednode() -> guitreeviewnode` [C]
- `guitreeviewctrl.getselectedpath() -> string` [C]
- `guitreeviewctrl.groupsortorder: string` [C]
- `guitreeviewctrl.iconheight: number` [C]
- `guitreeviewctrl.iconwidth: number` [C]
- `guitreeviewctrl.nodes: string` [C]
- `guitreeviewctrl.onExpand(node: object, path: string, dotpath: string)` [C]
- `guitreeviewctrl.onFold(node: object, path: string, dotpath: string)` [C]
- `guitreeviewctrl.onSelect(node: object, path: string, dotpath: string)` [C]
- `guitreeviewctrl.select() -> number` [C]
- `guitreeviewctrl.seticonsize(arg1: number, arg2: number) -> number` [C]
- `guitreeviewctrl.sort() -> number` [C]
- `guitreeviewctrl.sortmode: string` [C]
- `guitreeviewctrl.sortorder: string` [C]
- `guitreeviewctrl.statuswidth: number` [C]

### guitreeviewnode

- `guitreeviewnode.addlines(arg1: object, arg2: boolean) -> number` [C]
- `guitreeviewnode.addnode(name: string) -> number` [C]
- `guitreeviewnode.addnodebypath(path: string, value: string) -> number` [C]
- `guitreeviewnode.addvars(arg1: object, arg2: boolean) -> number` [C]
- `guitreeviewnode.clearnodes() -> number` [C]
- `guitreeviewnode.destroy() -> number` [C]
- `guitreeviewnode.expanded: boolean` [C]
- `guitreeviewnode.expandedimage: string` [C]
- `guitreeviewnode.expandedselectedimage: string` [C]
- `guitreeviewnode.extent: string` [C]
- `guitreeviewnode.getfullname(arg1: string) -> string` [C]
- `guitreeviewnode.getnode(arg1: string) -> guitreeviewnode` [C]
- `guitreeviewnode.getnodebypath(arg1: string, arg2: string) -> guitreeviewnode` [C]
- `guitreeviewnode.height: number` [C]
- `guitreeviewnode.hint: string` [C]
- `guitreeviewnode.image: string` [C]
- `guitreeviewnode.level: number` [C]
- `guitreeviewnode.name: string` [C]
- `guitreeviewnode.parent: guitreeviewnode` [C]
- `guitreeviewnode.position: string` [C]
- `guitreeviewnode.profile: guicontrolprofile` [C]
- `guitreeviewnode.select() -> number` [C]
- `guitreeviewnode.selectedimage: string` [C]
- `guitreeviewnode.sortgroup: number` [C]
- `guitreeviewnode.sortvalue: number` [C]
- `guitreeviewnode.text: string` [C]
- `guitreeviewnode.useownprofile: boolean` [C]
- `guitreeviewnode.visible: boolean` [C]
- `guitreeviewnode.width: number` [C]
- `guitreeviewnode.x: number` [C]
- `guitreeviewnode.y: number` [C]

### guiwindowctrl

- `guiwindowctrl.bounds: array` [C]
- `guiwindowctrl.canclose: boolean` [C]
- `guiwindowctrl.canmaximize: boolean` [C]
- `guiwindowctrl.canminimize: boolean` [C]
- `guiwindowctrl.clientrelative: boolean` [C]
- `guiwindowctrl.closequery: boolean` [C]
- `guiwindowctrl.destroyonhide: boolean` [C]
- `guiwindowctrl.dockable: boolean` [C]
- `guiwindowctrl.externalwindow: guiwindowctrl` [C]
- `guiwindowctrl.isactivewindow() -> boolean` [C]
- `guiwindowctrl.isexternal: boolean` [C]
- `guiwindowctrl.istoolwindow: boolean` [C]
- `guiwindowctrl.maximized: boolean` [C]
- `guiwindowctrl.minimized: boolean` [C]
- `guiwindowctrl.onClose()` [C]
- `guiwindowctrl.onCloseQuery()` [C]
- `guiwindowctrl.screenbounds: array` [C]
- `guiwindowctrl.screenheight: number` [C]
- `guiwindowctrl.screenwidth: number` [C]
- `guiwindowctrl.settext(text: string) -> number` [C]
- `guiwindowctrl.showontaskbar: boolean` [C]
- `guiwindowctrl.text: string` [C]
- `guiwindowctrl.tile: boolean` [C]

### httprequest

- `httprequest.address: string`
- `httprequest.allowredirectext: number`
- `httprequest.contentlanguage: string`
- `httprequest.contentlength: number`
- `httprequest.contenttype: string`
- `httprequest.downloadcomplete: number`
- `httprequest.file: string`
- `httprequest.fulldata: string`
- `httprequest.gamefile: string`
- `httprequest.lastdatatime: number`
- `httprequest.lastmodified: string`
- `httprequest.location: string`
- `httprequest.port: number`
- `httprequest.returncode: number`
- `httprequest.returnmessage: string`
- `httprequest.server: string`
- `httprequest.url: string`

### key

- `key.addListener(listener: object)` [C]
- `key.backspace: number` [C]
- `key.capsLock: number` [C]
- `key.control: number` [C]
- `key.deleteKey: number` [C]
- `key.down: number` [C]
- `key.end: number` [C]
- `key.enter: number` [C]
- `key.escape: number` [C]
- `key.getAscii() -> number` [C]
- `key.getCode() -> number` [C]
- `key.home: number` [C]
- `key.insert: number` [C]
- `key.isAccessible(code: number) -> boolean` [C]
- `key.isDown(code: number) -> boolean` [C]
- `key.isToggled(code: number) -> boolean` [C]
- `key.left: number` [C]
- `key.onKeyDown()` [C]
- `key.onKeyUp()` [C]
- `key.pgDn: number` [C]
- `key.pgUp: number` [C]
- `key.removeListener(listener: object) -> boolean` [C]
- `key.right: number` [C]
- `key.shift: number` [C]
- `key.space: number` [C]
- `key.tab: number` [C]
- `key.up: number` [C]

### level

- `level.board: array` [S]
- `level.findareanpcs(x: number, y: number, width: number, height: number) -> npc[]`
- `level.getareanpcs(x: number, y: number, width: number, height: number) -> npc[]` [S]
- `level.getmappartfile(column: number, row: number) -> string` [C]
- `level.getnpcindex(name: string) -> number` [S]
- `level.height: number`
- `level.isgmap: number`
- `level.links: levellink[]` [C]
- `level.name: string`
- `level.npcs: npc[]`
- `level.onwallpath(x: number, y: number, width: number, height: number, dx: number, dy: number) -> boolean` [S]
- `level.onwaterpath(x: number, y: number, width: number, height: number, dx: number, dy: number) -> boolean` [S]
- `level.players: player[]`
- `level.projectiles: projectile[]` [C]
- `level.reflectarrow(index: number)` [C]
- `level.removearrow(index: number)` [C]
- `level.setz(x: number, y: number, width: number, height: number, z1: number, z2: number, z3: number, z4: number)` [C]
- `level.shoot(x: number, y: number, z: number, angle: number, zangle: number, speed: number, ani: string, params: string)`
- `level.signs: sign[]` [C]
- `level.testnpc(x: number, y: number) -> number`
- `level.testsign(x: number, y: number) -> number` [C]
- `level.tilelayercount: number`
- `level.tilelayers: tileslayer[]`
- `level.tiles: object`
- `level.tiletype(x: number, y: number) -> number`
- `level.updateboard(x: number, y: number, width: number, height: number)` [S]
- `level.updateboard2(x: number, y: number, width: number, height: number)` [S]
- `level.width: number`

### levellink

- `levellink.destlevel: string` [C]
- `levellink.destx: number` [C]
- `levellink.desty: number` [C]
- `levellink.height: number` [C]
- `levellink.width: number` [C]
- `levellink.x: number` [C]
- `levellink.y: number` [C]

### levelobject

- `levelobject.layer: number` [C]

### math

- `abs(x: number) -> number`
- `acos(x: number) -> number`
- `asin(x: number) -> number`
- `atan(x: number) -> number`
- `atan2(y: number, x: number) -> number`
- `ceil(x: number) -> number`
- `cos(x: number) -> number`
- `degtorad(degrees: number) -> number`
- `math.e: number`
- `exp(x: number) -> number`
- `floor(x: number) -> number`
- `hypot(a: number, b: number) -> number`
- `math.ln10: number`
- `math.ln2: number`
- `log(x: number) -> number`
- `log10(x: number) -> number`
- `log2(x: number) -> number`
- `max(a: number, b: number) -> number`
- `min(a: number, b: number) -> number`
- `math.pi: number`
- `pow(base: number, exponent: number) -> number`
- `radtodeg(radians: number) -> number`
- `random() -> number`
- `round(x: number) -> number`
- `sign(x: number) -> number`
- `sin(x: number) -> number`
- `sqrt(x: number) -> number`
- `math.sqrt1_2: number`
- `math.sqrt2: number`
- `tan(x: number) -> number`
- `trunc(x: number) -> number`

### movieclip

- `movieclip._level0: movieclip` [C]
- `movieclip._name: string` [C]
- `movieclip._parent: movieclip` [C]
- `movieclip._root: movieclip` [C]
- `movieclip._rotation: number` [C]
- `movieclip._visible: boolean` [C]
- `movieclip._x: number` [C]
- `movieclip._xmouse: number` [C]
- `movieclip._xscale: number` [C]
- `movieclip._y: number` [C]
- `movieclip._ymouse: number` [C]
- `movieclip._yscale: number` [C]
- `movieclip.alpha: number` [C]
- `movieclip.attachmovie(source: any, name: string, depth: number) -> movieclip` [C]
- `movieclip.blue: number` [C]
- `movieclip.clearinterval(interval: object)` [C]
- `movieclip.createemptymovieclip(name: string, depth: number) -> movieclip` [C]
- `movieclip.duplicatemovieclip(name: string, depth?: number) -> movieclip` [C]
- `movieclip.frame: number` [C]
- `movieclip.framecount: number` [C]
- `movieclip.getbounds(target?: object) -> object` [C]
- `movieclip.getbytesloaded() -> number` [C]
- `movieclip.getbytestotal() -> number` [C]
- `movieclip.getcolor() -> string` [C]
- `movieclip.getdepth() -> number` [C]
- `movieclip.getinstanceatdepth(depth: number) -> movieclip` [C]
- `movieclip.getlayer(name: string) -> movieclip` [C]
- `movieclip.getnexthighestdepth() -> number` [C]
- `movieclip.getproperty(index: number) -> string` [C]
- `movieclip.gettimer() -> number` [C]
- `movieclip.globaltolocal(point: object)` [C]
- `movieclip.gotoandplay(frame: any)` [C]
- `movieclip.gotoandstop(frame: any)` [C]
- `movieclip.green: number` [C]
- `movieclip.height: number` [C]
- `movieclip.hittest(target: any, y?: number) -> boolean` [C]
- `movieclip.key: object` [C]
- `movieclip.layerdepths: array` [C]
- `movieclip.layernames: array` [C]
- `movieclip.localtoglobal(point: object)` [C]
- `movieclip.looping: boolean` [C]
- `movieclip.math: object` [C]
- `movieclip.nextframe()` [C]
- `movieclip.objectname: string` [C]
- `movieclip.objectnames: array` [C]
- `movieclip.onEnterFrame()` [C]
- `movieclip.onInitFrame()` [C]
- `movieclip.onPress()` [C]
- `movieclip.onRelease()` [C]
- `movieclip.onRollOut()` [C]
- `movieclip.onRollOver()` [C]
- `movieclip.play()` [C]
- `movieclip.playing: boolean` [C]
- `movieclip.prevframe()` [C]
- `movieclip.red: number` [C]
- `movieclip.removelayer(name: string)` [C]
- `movieclip.removemovieclip()` [C]
- `movieclip.setcolor(color: string)` [C]
- `movieclip.setinterval(target: object, function: string, milliseconds: number) -> object` [C]
- `movieclip.setmask(mask: object)` [C]
- `movieclip.setproperty(index: number, value: string)` [C]
- `movieclip.stage: stage` [C]
- `movieclip.startdrag()` [C]
- `movieclip.stop()` [C]
- `movieclip.stopdrag()` [C]
- `movieclip.swapdepths(sibling: any)` [C]
- `movieclip.unloadmovie()` [C]
- `movieclip.updateafterevent()` [C]
- `movieclip.width: number` [C]

### npc

- `npc.actionplayer: number` [C]
- `npc.ani: string`
- `npc.blockagain() -> any`
- `npc.blockagainlocal()` [C]
- `npc.body: string`
- `npc.bodyimg: string`
- `npc.canbecarried()` [C]
- `npc.canbepulled()` [C]
- `npc.canbepushed()` [C]
- `npc.cancelevents(event: string) -> number`
- `npc.cannotbecarried()` [C]
- `npc.cannotbepulled()` [C]
- `npc.cannotbepushed()` [C]
- `npc.changeimgcolors(index: number, red: number, green: number, blue: number, alpha: number)`
- `npc.changeimgmode(index: number, mode: number)`
- `npc.changeimgpart(index: number, x: number, y: number, width: number, height: number)`
- `npc.changeimgvis(index: number, layer: number)`
- `npc.changeimgzoom(index: number, zoom: number)`
- `npc.chat: string`
- `npc.colors: array`
- `npc.destroy() -> number`
- `npc.dir: number`
- `npc.dontblock() -> any`
- `npc.dontblocklocal()` [C]
- `npc.drawaslight() -> any`
- `npc.drawoverplayer()` [C]
- `npc.drawunderplayer() -> any`
- `npc.findimg(index: number) -> showimg`
- `npc.head: string`
- `npc.headimg: string`
- `npc.height: number` [C]
- `npc.hide()`
- `npc.hideimg(index: number)`
- `npc.hideimgs(first: number, last: number)`
- `npc.hidelocal()` [C]
- `npc.horseimg: string` [C]
- `npc.id: number`
- `npc.image: string`
- `npc.isblocking: boolean` [C]
- `npc.isblockingprojectiles: boolean` [C]
- `npc.isinclass(className: string) -> boolean`
- `npc.join(className: string) -> number`
- `npc.layer: number` [C]
- `npc.leave(className: string) -> number`
- `npc.level: string`
- `npc.message(text: string) -> any`
- `npc.move(dx: number, dy: number, time: number, options: number) -> any`
- `npc.name: string`
- `npc.nick: string`
- `npc.npcsindex: number` [C]
- `npc.peltwithblackstone: boolean` [C]
- `npc.peltwithbush: boolean` [C]
- `npc.peltwithnpc: boolean` [C]
- `npc.peltwithsign: boolean` [C]
- `npc.peltwithstone: boolean` [C]
- `npc.peltwithvase: boolean` [C]
- `npc.save: array` [C]
- `npc.scheduleevent(delay: number, event: string, ...args?: any)`
- `npc.setani(ani: string, params: string)`
- `npc.setbow(image: string)` [C]
- `npc.setcharani(ani: string, param: string) -> any`
- `npc.setimg(file: string) -> any`
- `npc.setimgpart(file: string, x: number, y: number, width: number, height: number) -> any`
- `npc.setshape(type: number, width: number, height: number) -> any`
- `npc.settimer(seconds: number)`
- `npc.shield: string`
- `npc.shieldimg: string`
- `npc.show()`
- `npc.showani(index: number, x: number, y: number, dir: number, ani: string) -> showimg`
- `npc.showani2(index: number, x: number, y: number, dir: number, ani: string, layer: number) -> showimg`
- `npc.showcharacter() -> any`
- `npc.showimg(index: number, file: string, x: number, y: number) -> showimg`
- `npc.showimg2(index: number, file: string, x: number, y: number, layer: number) -> showimg`
- `npc.showlocal()` [C]
- `npc.showtext(index: number, x: number, y: number, font: string, style: string, text: string) -> showimg`
- `npc.showtext2(index: number, x: number, y: number, font: string, style: string, text: string, layer: number) -> showimg`
- `npc.sprite: number` [C]
- `npc.sword: string`
- `npc.swordimg: string`
- `npc.timereverywhere()` [C]
- `npc.trigger(event: string, ...args?: any)`
- `npc.visible: number`
- `npc.warpto(level: string, x: number, y: number) -> any`
- `npc.width: number` [C]
- `npc.x: number`
- `npc.y: number`
- `npc.z: number`

### object

- `object.cancelevent(event: string) -> number`
- `object.cancelevents(event: string) -> number`
- `object.addarraymember(name: string) -> object`
- `object.addnamedstring(name: string, text: string) -> object`
- `object.catchevent(target: any, event: string, callback: function)`
- `object.clearemptyvars()`
- `object.clearvars()`
- `object.copyfrom(source: object)`
- `object.getarraymember(name: string) -> object`
- `object.getdynamicvarnames() -> array`
- `object.geteditvarnames() -> array`
- `object.getfunctions() -> array`
- `object.getstaticvarnames() -> array`
- `object.getvarnames() -> array`
- `object.hasfunction(name: string) -> number`
- `object.ignoreevent(target: any, event: string)`
- `object.ignoreevents(target: any)`
- `object.initialized: boolean`
- `object.ispaused: boolean`
- `object.joinedclasses: array`
- `object.loadini(path: string) -> boolean` [S]
- `object.loadjson(path: string) -> boolean` [S]
- `object.loadjsonfromstring(text: string) -> number`
- `object.loadvars(path: string) -> boolean` [S]
- `object.loadvarsfromarray(lines: array)`
- `object.loadxml(path: string) -> boolean` [S]
- `object.loadxmlfromstring(xml: string) -> boolean`
- `object.maxlooplimit: number`
- `object.objecttype() -> string`
- `object.savejson(path: string, mode?: number, format?: number) -> boolean` [S]
- `object.savejsontostring(indent: number, recursive?: any) -> string`
- `object.savevars(path: string, mode?: number) -> boolean` [S]
- `object.savevarstoarray(flag?: any) -> array`
- `object.savexml(path: string, mode?: number) -> boolean` [S]
- `object.savexmltostring() -> string`
- `object.scripterrors: array`
- `object.scriptlogmissingfunctions: boolean`
- `object.timeout: number`
- `object.trigger(event: string, ...args?: any)`

### particleemitter

- `particleemitter.addemitmodifier(type: string, rangemin: number, rangemax: number, variable: string, operation: string, valuemin: number, valuemax: number) -> particlemodifier` [C]
- `particleemitter.addglobalmodifier(type: string, rangemin: number, rangemax: number, variable: string, operation: string, valuemin: number, valuemax: number) -> particlemodifier` [C]
- `particleemitter.addlocalmodifier(type: string, rangemin: number, rangemax: number, variable: string, operation: string, valuemin: number, valuemax: number) -> particlemodifier` [C]
- `particleemitter.advancetime(seconds: number)` [C]
- `particleemitter.attachposition: boolean` [C]
- `particleemitter.autorotation: boolean` [C]
- `particleemitter.checkbelowterrain: boolean` [C]
- `particleemitter.clippingbox: array` [C]
- `particleemitter.cliptoscreen: boolean` [C]
- `particleemitter.continueafterdestroy: boolean` [C]
- `particleemitter.currentparticlecount: number` [C]
- `particleemitter.delaymax: number` [C]
- `particleemitter.delaymin: number` [C]
- `particleemitter.dimension: number` [C]
- `particleemitter.dropemitter: particleemitter` [C]
- `particleemitter.dropwateremitter: particleemitter` [C]
- `particleemitter.emissionoffset: array` [C]
- `particleemitter.emit()` [C]
- `particleemitter.emitat(position: string)` [C]
- `particleemitter.emitatterrainheight: boolean` [C]
- `particleemitter.emitautomatically: boolean` [C]
- `particleemitter.emittedparticles: number` [C]
- `particleemitter.firstinfront: boolean` [C]
- `particleemitter.forceaboveterrain: boolean` [C]
- `particleemitter.isfrozen: boolean` [C]
- `particleemitter.lifetime: number` [C]
- `particleemitter.maxparticles: number` [C]
- `particleemitter.movementfactor: number` [C]
- `particleemitter.movementvector: array` [C]
- `particleemitter.noclipping: boolean` [C]
- `particleemitter.nrofparticles: number` [C]
- `particleemitter.particle: object` [C]
- `particleemitter.particles: array` [C]
- `particleemitter.particletypes: number` [C]
- `particleemitter.removemodifiers()` [C]
- `particleemitter.removeparticles()` [C]
- `particleemitter.showonground: boolean` [C]
- `particleemitter.showontop: boolean` [C]
- `particleemitter.spin: number` [C]
- `particleemitter.switchyandzaxis: boolean` [C]
- `particleemitter.wraptoclippingbox: boolean` [C]
- `particleemitter.zangle: number` [C]

### particlemodifier

- `particlemodifier.addmod(variable: string, operation: string, valuemin: number, valuemax: number)` [C]

### player

- `player.account: string`
- `player.addtab(tab: object) -> number` [S]
- `player.addweapon(name: string) -> number` [S]
- `player.ani: string`
- `player.attached: boolean` [C]
- `player.attachplayertoobj(player: number, npc: any) -> boolean`
- `player.attr: array`
- `player.bodyimg: string`
- `player.cancelevents(event: string) -> number`
- `player.chat: string`
- `player.chatoffset: string` [C]
- `player.colors: array`
- `player.communityname: string`
- `player.defaultwalkspeed: number` [C]
- `player.detachplayer()`
- `player.diagonalwalkspeed: number` [C]
- `player.dir: number`
- `player.emoticon: string`
- `player.freezeplayer(seconds: number)`
- `player.freezeplayer2()`
- `player.freezetime: number` [C]
- `player.gmapx: number`
- `player.gmapy: number`
- `player.guild: string`
- `player.hasweapon(name: string) -> number`
- `player.head: string`
- `player.headimg: string`
- `player.headset: number` [C]
- `player.hideemoticon()` [C]
- `player.hidesign()` [C]
- `player.horseimg: string`
- `player.id: number`
- `player.ipaddresshash: string` [S]
- `player.isadmin: boolean`
- `player.isblocking: boolean` [C]
- `player.isbuddy: boolean` [C]
- `player.iscarrying: number`
- `player.isignored: boolean` [C]
- `player.isignoring: boolean` [C]
- `player.isinclass(className: string) -> boolean`
- `player.isjumping: boolean` [C]
- `player.isloggedin: boolean` [C]
- `player.isobserver: boolean` [C]
- `player.isrc: number` [S]
- `player.join(className: string) -> number`
- `player.language: string` [C]
- `player.languagedomain: string` [C]
- `player.leave(className: string) -> number`
- `player.letters: string` [C]
- `player.level: string`
- `player.levelname: string` [C]
- `player.map: boolean` [C]
- `player.mapicon: string` [C]
- `player.nick: string`
- `player.offline: boolean` [S]
- `player.onhorse: boolean`
- `player.online: boolean` [C]
- `player.paused: boolean` [C]
- `player.platform: string`
- `player.playerlisticon: number`
- `player.playersindex: number` [C]
- `player.reading: boolean` [C]
- `player.removeweapon(name: string) -> number`
- `player.say2(text: string)`
- `player.scheduleevent(delay: number, event: string, ...args?: any)`
- `player.scrollsign(steps: number)` [C]
- `player.sendping() -> object` [S]
- `player.sendrpgmessage(text: string)`
- `player.setani(ani: string, params: string)`
- `player.setcharani(ani: string, param: string) -> any`
- `player.shield: string`
- `player.shieldimg: string`
- `player.showemoticon(file: string)` [C]
- `player.showemoticonbykey(key: any)` [C]
- `player.swimming: boolean` [C]
- `player.sword: string`
- `player.swordimg: string`
- `player.trigger(event: string, ...args?: any)`
- `player.triggerclient(type: string, name: string, ...args?: any) -> any` [S]
- `player.unfreezeplayer()`
- `player.weapon: weapon` [C]
- `player.weapons: weapon[]` [C]
- `player.x: number`
- `player.y: number`
- `player.z: number`
- `player.zoomfactor: number` [C]

### projectile

- `projectile.angle: number` [C]
- `projectile.fromplayer: player` [C]
- `projectile.fromplayerid: number` [C]
- `projectile.horiz: boolean` [C]
- `projectile.params: array` [C]
- `projectile.speed: number` [C]
- `projectile.x: number` [C]
- `projectile.y: number` [C]
- `projectile.z: number` [C]
- `projectile.zspeed: number` [C]

### randomgenerator

- `randomgenerator.randfloat() -> number`
- `randomgenerator.randint() -> number`
- `randomgenerator.seed: number`

### showimg

- `showimg.actor: object` [C]
- `showimg.alpha: number` [C]
- `showimg.angle: number` [C]
- `showimg.ani: string` [C]
- `showimg.attachoffset: array` [C]
- `showimg.attachtoowner: boolean` [C]
- `showimg.blue: number` [C]
- `showimg.code: string` [C]
- `showimg.dimension: number` [C]
- `showimg.dir: number` [C]
- `showimg.emitter: particleemitter` [C]
- `showimg.font: string` [C]
- `showimg.green: number` [C]
- `showimg.height: number` [C]
- `showimg.image: string` [C]
- `showimg.imageindex: number` [C]
- `showimg.layer: number` [C]
- `showimg.lifetime: number` [C]
- `showimg.mode: number` [C]
- `showimg.movementvector: array` [C]
- `showimg.parth: number` [C]
- `showimg.partw: number` [C]
- `showimg.partx: number` [C]
- `showimg.party: number` [C]
- `showimg.playerlook: boolean` [C]
- `showimg.polygon: object` [C]
- `showimg.position: array` [C]
- `showimg.red: number` [C]
- `showimg.rotation: number` [C]
- `showimg.rotationcenter: array` [C]
- `showimg.shadowcolor: string` [C]
- `showimg.shadowoffset: array` [C]
- `showimg.sound: string` [C]
- `showimg.speed: number` [C]
- `showimg.spin: number` [C]
- `showimg.stretchx: number` [C]
- `showimg.stretchy: number` [C]
- `showimg.style: string` [C]
- `showimg.text: string` [C]
- `showimg.textshadow: boolean` [C]
- `showimg.uniqueparticle: boolean` [C]
- `showimg.useowncenter: boolean` [C]
- `showimg.width: number` [C]
- `showimg.x: number` [C]
- `showimg.y: number` [C]
- `showimg.z: number` [C]
- `showimg.zangle: number` [C]
- `showimg.zoom: number` [C]

### sign

- `sign.text: string` [C]
- `sign.x: number` [C]
- `sign.y: number` [C]

### socket

- `socket.address: string`
- `socket.bind(port: number, udp: number) -> number`
- `socket.clients: array`
- `socket.close()`
- `socket.connect(host: string, port: number) -> number`
- `socket.data: string`
- `socket.enablessl: number`
- `socket.error: string`
- `socket.ipaddress: string`
- `socket.isconnected: number`
- `socket.outdatalength: number`
- `socket.packagedelimiter: string`
- `socket.parent: object`
- `socket.port: number`
- `socket.send(data: string) -> number`
- `socket.sendudp(data: string, host: string, port: number) -> number`
- `socket.sslcertfile: string`
- `socket.sslcipherlist: string`
- `socket.sslkeyfile: string`
- `socket.sslprotocol: string`
- `socket.sslverifycert: number`

### sqlrequest

- `sqlrequest.columns: array` [S]
- `sqlrequest.completed: number` [S]
- `sqlrequest.error: string` [S]
- `sqlrequest.lastinsertid: number` [S]
- `sqlrequest.rows: array` [S]

### stage

- `stage.height: number` [C]
- `stage(value: any) -> stage` [C]
- `stage.width: number` [C]

### string

- `string.charat(index: number) -> string`
- `string.ends(suffix: string) -> number`
- `string.escape() -> string`
- `string.length() -> number`
- `string.lower() -> string`
- `string.pos(sub: string) -> number`
- `string.positions(sub: string) -> array`
- `string.regexfind(pattern: string, flags?: string) -> array`
- `string.regexfindall(pattern: string, flags?: string) -> array`
- `string.regexfindpos(pattern: string, flags?: string) -> array`
- `string.regexmatch(pattern: string, flags?: string) -> number`
- `string.regexreplace(pattern: string, replacement: string, flags?: string) -> string`
- `string.regexsplit(pattern: string, flags?: string) -> array`
- `string.regextest(pattern: string, flags?: string) -> number`
- `string.savestring(path: string, mode: number) -> number`
- `string.split(separator: string) -> array`
- `string.starts(prefix: string) -> number`
- `string.substring(start: number, length?: number) -> string`
- `string.tokenize(delims?: string) -> array`
- `string.trim() -> string`
- `string.type() -> number`
- `string.upper() -> string`

### tileanimation

- `tileanimation.animationcycle: boolean` [C]
- `tileanimation.animationframes: string` [C]
- `tileanimation.animationtime: number` [C]
- `tileanimation.dir: string` [C]
- `tileanimation.imagemap: string` [C]
- `tileanimation.randomstart: boolean` [C]
- `tileanimation.startframe: number` [C]

### tileimagemap

- `tileimagemap.allowunload: boolean` [C]
- `tileimagemap.cellcountx: number` [C]
- `tileimagemap.cellcounty: number` [C]
- `tileimagemap.cellheight: number` [C]
- `tileimagemap.celloffsetx: number` [C]
- `tileimagemap.celloffsety: number` [C]
- `tileimagemap.cellroworder: number` [C]
- `tileimagemap.cellstridex: number` [C]
- `tileimagemap.cellstridey: number` [C]
- `tileimagemap.cellwidth: number` [C]
- `tileimagemap.filtermode: string` [C]
- `tileimagemap.filterpad: boolean` [C]
- `tileimagemap.imagemode: string` [C]
- `tileimagemap.imagename: string` [C]
- `tileimagemap.linkimagemaps: string` [C]
- `tileimagemap.preferperf: boolean` [C]
- `tileimagemap.preload: boolean` [C]

### tilelayer

- `tilelayer.gettileanimation(x: number, y: number) -> string` [C]
- `tilelayer.gettileflags(x: number, y: number) -> string` [C]
- `tilelayer.gettileframe(x: number, y: number) -> number` [C]
- `tilelayer.gettileimagemap(x: number, y: number) -> string` [C]
- `tilelayer.layerfile: string` [C]
- `tilelayer.tilecountx: number` [C]
- `tilelayer.tilecounty: number` [C]
- `tilelayer.tilesizex: number` [C]
- `tilelayer.tilesizey: number` [C]

### tilemap

- `tilemap.animations: array` [C]
- `tilemap.clear()` [C]
- `tilemap.findanimation(name: string) -> tileanimation` [C]
- `tilemap.findimagemap(name: string) -> tileimagemap` [C]
- `tilemap.imagemaps: array` [C]
- `tilemap.layers: array` [C]
- `tilemap.loadtilemap(level: string, datablocks: string)` [C]
- `tilemap.loadtilemapxml(path: string)` [C]
- `tilemap.reload()` [C]
- `tilemap.saveasimage(path: string, scale: number, exact: boolean)` [C]

### tilemaplayer

- `tilemaplayer.objects: array` [C]
- `tilemaplayer.sortmode: string` [C]

### tilemapobject

- `tilemapobject.collisionactivereceive: boolean` [C]
- `tilemapobject.collisionpolylist: string` [C]
- `tilemapobject.flipx: boolean` [C]
- `tilemapobject.flipy: boolean` [C]
- `tilemapobject.layer: number` [C]
- `tilemapobject.position: string` [C]
- `tilemapobject.rotation: number` [C]
- `tilemapobject.size: string` [C]
- `tilemapobject.sortpoint: string` [C]

### tileslayer

- `tileslayer.alpha: number` [C]
- `tileslayer.blue: number` [C]
- `tileslayer.green: number` [C]
- `tileslayer.layerindex: number`
- `tileslayer.offset: string` [C]
- `tileslayer.red: number` [C]
- `tileslayer.tiles: object`
- `tileslayer.updateboard(x: number, y: number, width: number, height: number)`
- `tileslayer.updateboard2(x: number, y: number, width: number, height: number)` [S]
- `tileslayer.x: number` [C]
- `tileslayer.y: number` [C]
- `tileslayer.z: number` [C]

### tilesprite

- `tilesprite.animationname: string` [C]
- `tilesprite.frame: number` [C]
- `tilesprite.imagemap: string` [C]

### weapon

- `weapon.isweapon: boolean`

## 10. How to check a script

Use only checks that exist.

- The RC tool compiles a script while you type and shows errors and warnings with their codes. Saving a script with a compile error is refused.
- The MCP server of the RC tool has `diagnostics(source, side?)`, which compiles a source without saving it, and `definitions_lookup(name)`, which gives a built-in's signature. See `https://bornedocs.nullborne.com/admin/mcp-setup/`.
- The playground at `https://bornedocs.nullborne.com/playground/` runs code that needs no world, with a fake clock. It shows output and diagnostics.
- Read `echo` output and script errors in the RC chat after a hot reload.

## 11. Older GS2 scripts

Older GS2 source compiles and runs with the same behavior, except for the differences in `https://bornedocs.nullborne.com/language/14-differences-from-legacy/`. In short: a string literal used as a list is converted, `floor`, `ceil`, and `round` work on the server, the client runs at up to 60 frames a second, timers are not slowed, and GS1 code is never run. Turn on `legacy_warnings` when you port a script.

---

This file is generated from the engine's documentation and definitions. Do not edit it by hand. The source is the folder `docs/agents/` of the engine repository.
