IETS

May 31, 2026 ยท View on GitHub

Telegram Discord IRC Patreon

TypeScript type definitions for Infinity Engine scripting, for use in TBAF and TD.

Provides branded types, object specifiers, IDS constants, and typed action/trigger function declarations for IDE autocompletion and type checking.

Installation

pnpm install @bgforge/iets

Usage

const LVAR_doomed = "doomed";

if (See(Player1) && Global(LVAR_doomed, LOCALS, 0)) {
    SetGlobal(LVAR_doomed, LOCALS, 1);
    FaceObject(Player1);
    SmallWait(8);
    StartDialog("WM_RHIA", Player1);
}

See more in docs.