TriggerOnceIfNot

TriggerOnceIfNot

A one-shot trigger that fires only when the player does not possess the specified flag or item. Once it fires it removes itself, so it will never fire again.

Typical use: gate a warning or event on the player lacking a required prerequisite — e.g. display a reminder message until the player picks up the required item, at which point the trigger is gone and never interrupts them again.

Constructor

new TriggerOnceIfNot(terrain, test, color, message)

Source:
Parameters:
Name Type Description
terrain Terrain

The underlying terrain this decorator wraps.

test string

Flag name or item name whose absence allows the trigger to fire.

color Color

Color event broadcast to the board on firing.

message string | null

Optional modal message shown to the player.

Extends

Classes

TriggerOnceIfNot

Members

terrain :Terrain

Source:
Overrides:
Type:

Methods

getProxiedTerrain()

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

Source:
Overrides: