The main API the modding engine uses to perform any actions regarding events
This api is mostly for runtime events, if you want to add new compile time events look at loading data assets.
Members
-
static dataEvents
-
an array storing all active map events
-
static dataEvents
-
an array storing all active map events
-
static orgSetupEvent
-
the base setup events function
Methods
-
static addItemDropToCurrentMap(item)
-
Parameters:
Name Type Description item
Game_Item -
static createBlankEvent()
-
create a blank event
Returns:
-the id of the event
-
static createEnemyFromExisting(mapId, eventId, alivePageId, deadPageId)
-
create an enemy from an existing enemy handling death with a self switch
the self switch "A" will be used for the death page
the self switch "B" is used to signal if the player is in combat with it or notParameters:
Name Type Description mapId
* the map of the original enemy
eventId
* the id of the original enemy
alivePageId
* the alive page of the original enemy
deadPageId
* the dead page of the original enemy
-
static getEventOnMap(id, mapId) → {rm.types.Event}
-
get a Game event obj from id and map id
Parameters:
Name Type Description id
int event id
mapId
int mapid
Returns:
rm.types.Event