Skip to main content

Events

nexMap uses eventStream for its internal event model. Subscribe to these events to integrate other packages with map state changes.

Emitted events

EventPayloadDescription
nexMapLoadednoneMap has been loaded and rendered.
nexMapRoomChangednoneCurrent room changed; read from nexMap.status.
nexMapRoomChanged.<roomId>noneRoom specific change event.
nexMapAreaChangedareaIdCurrent area changed.
nexMapPathingStartnonePathing has started.
nexMapPathingCompletenonePathing completed.
nexMapSubjectTracked{ subjectType, id, name, room, area }A subject was tracked.
nexMapSubjectCleared{ subjectType }A tracked subject was cleared.
nexMapTrackingClearednoneAll tracking was cleared.

Consumed events

nexMap subscribes to these eventStream events:

  • Room.Info to update the current room.
  • Char.Status to enable wormholes for serpents or vibrating stick users.
  • eqBalRecoveredEvent to advance pathing when balance is recovered.

Example

eventStream.registerEvent("nexMapLoaded", () => {
console.log("nexMap is ready");
});