Skip to content

Trigger

rech edited this page Jun 15, 2026 · 1 revision

Description

Class for creating different triggers.

Remarks

Triggers are used to detect events and dispatch val changes. A trigger by itself does nothing; it must be combined with a TriggerChannel to produce a val channel.

Methods

judgement()

Description

Creates a trigger that activates on judgement events.

Return types

JudgementTrigger

Example

local trig = Trigger.judgement()

observe(channel)

Description

Creates a trigger that activates based on the val of a ValueChannel.

Parameters

Name Type Description
channel ValueChannel The channel to observe

Return types

ObserveTrigger

Example

local trig = Trigger.observe(Context.currentCombo)

Clone this wiki locally