TriggerOnce

TriggerOnce

Fires a color event (and optional message) when the player steps on it, then removes itself so it will never fire again.

Typical use: play a one-time scene or reward the first time a player reaches a location — e.g. show an introductory message when entering a new area for the first time.

Constructor

new TriggerOnce()

Source:

Extends

Members

terrain :Terrain

Source:
Inherited From:
Type:

Methods

getProxiedTerrain()

Description:
  • Return the terrain being wrapped (TerrainProxy interface).

Source:
Inherited From:

onEnterInternal(event, player, cell, dir)

Description:
  • Fires the color event (delegating to Trigger#onEnterInternal), then removes this decorator from the cell. Skips silently when the event is already cancelled.

Source:
Overrides:
Parameters:
Name Type Description
event GameEvent
player Player
cell Cell
dir Direction