Description

Defines the data of new event on a map

Usage

Parameters

  • id {Integer}

    Map ID. The map must existed

  • id {Integer}

    Event ID

  • obj {Array}

    Event data

Example

RPGJS.setMap(2, [[[8378, null, null], [...
RPGJS.setMap(2, 1, [
    {
        "id": "1",
        "x": "5",
        "y": "4",
        "name": "EV-1"
    },
    [
        {
            "trigger": "action_button",
            "frequence": "2",
            "type": "fixed",
            "speed": "4",
            "switch_1": 0,
            "switch_2": 0,
            "switch_3": 0,
            "commands": [
                "ERASE_EVENT: true"
            ],
            "graphic": "2"
        }
    ]
]);

Discussion