Listener Triggers Remaining (Expression) — skLambda
Addon: skLambda · Category: Expression · Since: 0.0.2-alpha
Syntax
[the] remaining triggersDescription
How many more times a listener will fire before completion. Forms: - `remaining triggers` (no operand) only works inside an `on trigger` block. - `triggers of %listener%` and `%listener%'s triggers` work anywhere.
Supports `add`, `set`, and `remove`.
Examples
listen for chat:
triggers: 5
on trigger:
send "triggers left: %remaining triggers%" to console
add 1 to {shield}'s triggers
set triggers of {shield} to 3