Pages » Ama » Core » Triggers


Arena Game Triggers allows you to customize arena behavior.

Number Trigger Options:

  • Negate - Add an exclamation mark (!) before the value to negate it: !5, !6
  • Repeat - Add an percent symbol (%) before the value: %5 (each 5th), %10 (each 10th)
  • Negate+Repeat - Add Negate and Repeat options before the value: !%3 (each NOT 3rd), !%8 (each NOT 8th)
  • Greater - Add a greater than sign (>) before the value to check if it's greater: >1, >5
  • Smaller - Add a less than sign (<) before the value to check if it's smaller: <1, <5

Text Trigger Options:

  • Any - Use a wildcard symbol (*) to accept any value.

Arena Game Triggers

Trigger Description Return Type Example
GAME_START Triggers when the game starts. Boolean GAME_START: true
GAME_START: false
GAME_END_WIN Triggers when the game ends on a final wave. Boolean GAME_END_WIN: true
GAME_END_WIN: false
GAME_END_TIME Triggers when the game ends due to timeleft. Boolean GAME_END_TIME: true
GAME_END_TIME: false
GAME_END_LOSE Triggers when the game ends due to no players alive. Boolean GAME_END_LOSE: true
GAME_END_LOSE: false
WAVE_START Triggers when a new wave starts. Number WAVE_START: 1,10
WAVE_START: !5
WAVE_START: %2,!%4
WAVE_START: >3,<9
WAVE_END Triggers when all mobs of a wave are killed. Number WAVE_END: 1,10
WAVE_END: !5
WAVE_END: %2,!%4
WAVE_END: >3,<9
SHOP_ITEM_UNLOCKED Triggers when a shop product is unlocked. Text SHOP_ITEM_UNLOCKED: sword123
SHOP_ITEM_UNLOCKED: *
SHOP_ITEM_LOCKED Triggers when a shop product is locked. Text SHOP_ITEM_LOCKED: sword123
SHOP_ITEM_LOCKED: *
REGION_UNLOCKED Triggers when an arena region is unlocked. Text REGION_UNLOCKED: region123
REGION_UNLOCKED: *
REGION_LOCKED Triggers when an arena region is locked. Text REGION_LOCKED: region123
REGION_LOCKED: *
PLAYER_JOIN Triggers when player joins the arena. Text PLAYER_JOIN: Player123
PLAYER_JOIN: *
PLAYER_LEAVE Triggers when player leaves the arena. Text PLAYER_LEAVE: Player123
PLAYER_LEAVE: *
PLAYER_DEATH Triggers when player dies in arena. Text PLAYER_DEATH: Player123
PLAYER_DEATH: *
MOB_KILLED Triggers when a mob killed. Text MOB_KILLED: zombie
MOB_KILLED: *
MOB_KILLED: SkeletonKing
SPOT_CHANGED Triggers when a spot state changed. Text SPOT_CHANGED: spot123
SPOT_CHANGED: *
SCORE_INCREASED Triggers when a game score increased. Number SCORE_INCREASED: >100
SCORE_DECREASED Triggers when a game score decreased. Number SCORE_DECREASED: <100

Information
Empty Block

18+