Link Search Menu Expand Document

events.d overview


Table of contents


utils

CommonEventTrigger (type alias)

Signature

export declare type CommonEventTrigger = 0 | 1 | 2

DataCommonEvent (interface)

Signature

export interface DataCommonEvent extends DataBaseBase {
  trigger: CommonEventTrigger
  switchId: SwitchID
  list: DataCommand[]
}

DataEvent (interface)

Signature

export interface DataEvent extends DataBase {
  pages: DataEventPage[]
  x: number
  y: number
}

DataEventPage (interface)

Signature

export interface DataEventPage {
  conditions: Partial<EventPageConditions>
  image: EventImage
  moveType: number
  moveRoute: MoveRoute
  moveSpeed: MoveSpeed
  moveFrequency: MoveFrequency
  walkAnime: boolean
  stepAnime: boolean
  directionFix: boolean
  through: boolean
  priorityType: PriorityType
  trigger: EventTrigger
  list: DataCommand[]
}

EventImage (interface)

Signature

export interface EventImage {
  tileId: TilesetID
  characterName: string
  direction: Direction
  pattern: number
  characterIndex: number
}

EventPageConditions (interface)

Signature

export interface EventPageConditions {
  switch1Valid: boolean
  switch1Id: SwitchID
  switch2Valid: boolean
  switch2Id: SwitchID
  variableValid: boolean
  variableId: VariableID
  variableValue: number
  selfSwitchCh: SelfSwitchCharacter
  selfSwitchValid: boolean
  itemValid: boolean
  itemId: ItemID
  actorValid: boolean
  actorId: ActorID
}

EventTrigger (type alias)

Signature

export declare type EventTrigger = 0 | 1 | 2 | 3 | 4

MoveFrequency (type alias)

Signature

export declare type MoveFrequency = 1 | 2 | 3 | 4 | 5

MoveSpeed (type alias)

Signature

export declare type MoveSpeed = 1 | 2 | 3 | 4 | 5 | 6

MoveType (type alias)

Signature

export declare type MoveType = 0 | 1 | 2 | 3

PriorityType (type alias)

Signature

export declare type PriorityType = 0 | 1 | 2

SelfSwitchCharacter (type alias)

Signature

export declare type SelfSwitchCharacter = 'A' | 'B' | 'C' | 'D'