Skip to main content
 Warning: Unmaintained Version
Version: 0.4.2

CustomTriggeringActionEntry

The CustomTriggeringActionEntry is a specialised verion of the ActionEntry that allows you to trigger the next entries when you want. Or just call a subset of entries.

Usage

@Entry("example_custom_triggering_action", "An example custom triggering entry.", Colors.RED, Icons.SOLID_HOURGLASS_HALF)
class ExampleCustomTriggeringActionEntry(
override val id: String = "",
override val name: String = "",
override val criteria: List<Criteria> = emptyList(),
override val modifiers: List<Modifier> = emptyList(),
@SerializedName("triggers")
override val customTriggers: List<String> = emptyList(),
) : CustomTriggeringActionEntry {
override fun execute(player: Player) {
super.execute(player) // This will apply the modifiers.
player.triggerCustomTriggers() // Can be called later to trigger the next entries.
}
}