Actions

Documentation:eventif

From LMHack

Author(s)

weirdboo

Description

These are the seven EventIf types that can be used in the jump table eventinfo to control when your event activates.

Number EventArea Shape Description
0 No shape. The event will activate repeatedly unless EventTime/EventTime2/EventTime3/EventTime4, EventFlag, disappear_flag, or EventLoad is used. Note that pos_x, pos_y, pos_z, and EventArea will be completely ignored, meaning the event can be called anywhere.
1 Cylinder that ignores pos_y The event will only activate when Luigi is in the EventArea range and presses the A button. Luigi must leave the range and re-enter it in order to activate the entry again. Note that the range will be contained within the room that pos_x, pos_y, and pos_z are in, meaning Luigi cannot press A to activate the event outside of the containing room's bounding box.
2 The event will only activate once when Luigi is in the EventArea range. Luigi must go two rooms away and come back in order to activate the entry again. Note that the range will be contained within the room that pos_x, pos_y, and pos_z are in, meaning Luigi cannot activate the event outside of the containing room's bounding box. The event will also activate after Luigi finishes opening a door, preventing glitches.
3 Similar to 2, but the event activates the instant Luigi enters the containing room's bounding box, meaning that glitches can occur while Luigi opens a door.
4 (WIP) Seems to be a clone of 2.
5 The event will activate every time Luigi enters the EventArea range. Luigi must leave the range and re-enter it in order to activate the entry again. This type will not contain the event inside of a room's bounding box, meaning Luigi can activate it from any room as long as he's within the EventArea.
6 Sphere that uses pos_y Similar to 3, but the EventArea shape will check pos_y and become a sphere instead of a cylinder that extends to the size of the room's bounding box.