Skip to content

Elite Script Events

MagmaGuy edited this page Nov 21, 2022 · 14 revisions

Events

EliteScripts are event-based. This means that they are launched when a specific event is triggered. The following are the currently valid events:

Event Details Direct Target [?]
EliteMobDamagedByEliteMobEvent Elite damaged by another elite
EliteMobDamagedByPlayerEvent Elite damaged by a player Damaging player
EliteMobDamagedEvent Elite damaged by anything
EliteMobDeathEvent Elite death
EliteMobEnterCombatEvent Elite enter combat with player Engaging player
EliteMobExitCombatEvent Elite exit combat
EliteMobHealEvent Elite full heal
EliteMobSpawnEvent Elite spawn
EliteMobTargetPlayerEvent Elite target player Targeted player
PlayerDamagedByEliteMobEvent Elite damage player Damaged player
ElitePhaseSwitchEvent Boss spawn from phase switch

Note: "Elite" refers to any aggressive entity spawned by the plugin, no matter if they're a reinforcement, a boss or anything else.

Direct Target is used by the Script Targets, more on that here.

There can only be one Events section per script. However, several events can be set as triggers for a script:

eliteScript:
  Example:
    Events:
    - EliteMobDamagedByPlayerEvent
    - EliteMobTargetPlayerEvent
    Actions:
    - action: PUSH
      target: SELF
      vValue: 0,.3,0
    Cooldowns:
      local: 60
      global: 20

This script would make the elite jump when hit by a player or when hit by the player.

Clone this wiki locally