-
Notifications
You must be signed in to change notification settings - Fork 64
Elite Script Events
MagmaGuy edited this page Nov 21, 2022
·
14 revisions
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.
Basic:
- Quick Setup
- Understanding the basics of EliteMobs
- Prestige System
- Config files
- Instanced Dungeon Difficulty
- Permissions and commands
- Dungeons
- FAQ
Custom Enchantments
Creation & Customization Guides:
- Creating custom bosses
- Creating custom items
- Creating custom events
- Creating custom spawns
- Creating custom quests
- Creating custom NPCs
- Creating treasure chests
- Creating Wormholes
- Creating Custom Powers / Elite Scripting
- Creating Arenas
- Dungeon Packager / Packaging EliteMobs content
- Item Upgrade System
- How damage works
Premade content:
Mechanics:
Game Modes:
Third party support: