Description

Load event on the map. The event is then sent to the scene to display

Usage

Parameters

  • name {String}

    Filename JSON. The file is located in Data/Events/MAP-[ID]/[NAME].json. Example : Data/Events/MAP-1/EV-1.json. If the event has no ID, a random ID is automatically given

  • dynamic {Boolean} optional

    (optional) Specifies that the event is dynamic. In this case, the path of the event is Data/Events/[NAME].json

  • callback {Function} optional

    (optional) Callback function when the event is loaded and displayed. Three parameters sent

    • id {Integer} Event ID
    • event {Game_Event} : Event
    • data {Object} : Data from JSON file

Discussion