IdaJS
    Preparing search index...

    Interface GameVariables

    Some important vanilla LBA2 game variables, such as inventory items, chapter, and others.

    Use Scene.setGameVariable to set such variables.

    The inventory items are not fully documented yet, but should be clear from their names.

    scene.GameVariables.

    interface GameVariables {
        $: EnumHandler;
        INV_BLOWGUN: 23;
        INV_CONCH: 22;
        INV_DARTS: 2;
        INV_DIPLOMA: 30;
        INV_FERRY_TICKET: 13;
        INV_FLOWER: 27;
        INV_GALLIC_ACID: 17;
        INV_GAZOGEM: 15;
        INV_GEM: 21;
        INV_GLOVE: 11;
        INV_HALF_MEDALLION: 16;
        INV_HOLOMAP: 0;
        INV_KEY_BLAFARD: 34;
        INV_KEY_KNARTA: 31;
        INV_KEY_MOSQUI: 33;
        INV_KEY_SUP: 32;
        INV_LIGHTNING_RING: 19;
        INV_LUCI_TART: 25;
        INV_MAGIC_BALL: 1;
        INV_MAYOR_KEY: 37;
        INV_MAYOR_NOTE: 38;
        INV_MECA_PENGUIN: 14;
        INV_MEMORY_VIEWER: 24;
        INV_MONEY: 8;
        INV_PEARL: 5;
        INV_PICKAXE: 36;
        INV_PISTOLASER: 9;
        INV_PROTECTION: 39;
        INV_PROTOPACK: 12;
        INV_PYRAMID_KEY: 6;
        INV_QUEEN_KEY: 35;
        INV_RADIO: 26;
        INV_ROAD_DISC: 24;
        INV_SABER: 10;
        INV_SENDELL_BALL: 3;
        INV_SLATE: 28;
        INV_SONG: 18;
        INV_STEERING_WHEEL: 7;
        INV_TRANSLATOR: 29;
        INV_TUNIC: 4;
        INV_UMBRELLA: 20;
        VAR_CELEBRATION: 79;
        VAR_CHAPTER: 253;
        VAR_CLOVER: 251;
        VAR_DINO_JOURNEY: 94;
        VAR_ESC: 249;
        VAR_PLANET_ESMER: 254;
    }
    Index

    Properties

    INV_BLOWGUN: 23
    INV_CONCH: 22
    INV_DARTS: 2

    Darts

    INV_DIPLOMA: 30
    INV_FERRY_TICKET: 13
    INV_FLOWER: 27
    INV_GALLIC_ACID: 17
    INV_GAZOGEM: 15

    GazoGem

    INV_GEM: 21
    INV_GLOVE: 11

    Glove

    INV_HALF_MEDALLION: 16
    INV_HOLOMAP: 0
    INV_KEY_BLAFARD: 34
    INV_KEY_KNARTA: 31
    INV_KEY_MOSQUI: 33
    INV_KEY_SUP: 32
    INV_LIGHTNING_RING: 19
    INV_LUCI_TART: 25
    INV_MAGIC_BALL: 1
    INV_MAYOR_KEY: 37
    INV_MAYOR_NOTE: 38
    INV_MECA_PENGUIN: 14
    INV_MEMORY_VIEWER: 24

    ACF Viewer

    INV_MONEY: 8

    Foreign money in the inventory: gold or zlitos, depending on the current planet.

    This variable should not be set directly. Use scene.setForeignMoney() instead.

    INV_PEARL: 5
    INV_PICKAXE: 36
    INV_PISTOLASER: 9

    PistoLaser

    INV_PROTECTION: 39

    Protection Spell

    INV_PROTOPACK: 12
    INV_PYRAMID_KEY: 6
    INV_QUEEN_KEY: 35

    Queen Mosquibees Key

    INV_RADIO: 26
    INV_ROAD_DISC: 24

    Road Disc

    INV_SABER: 10

    The Saber

    INV_SENDELL_BALL: 3
    INV_SLATE: 28
    INV_SONG: 18
    INV_STEERING_WHEEL: 7
    INV_TRANSLATOR: 29
    INV_TUNIC: 4
    INV_UMBRELLA: 20
    VAR_CELEBRATION: 79

    Used to switch Celebration Island state between normal and final

    VAR_CHAPTER: 253

    Use to read and set the current game chapter

    VAR_CLOVER: 251

    The number of full clover boxes. Do not set more than 10, looks ugly in the UI.

    VAR_DINO_JOURNEY: 94

    Used for Dino on Holomap, investigate how it works

    VAR_ESC: 249

    Set if the player pressed Escape key during an automatic scene. Use as read only.

    VAR_PLANET_ESMER: 254

    Switches type of rails to be either like in Bu temple or like in the Zeelich mine, can also be used in the script