Skip to content

Exiled Events

Saskyc edited this page Mar 31, 2024 · 4 revisions

What Are Exiled Events?

Exiled Events are triggers that execute when specific actions occur within the game, such as a player changing roles.

Where to Find Exiled Events?

Exiled Events can be found in the Exiled.Events/EventArgs directory of the EXILED repository.

How to Use Them?

  1. Locate the relevant Exiled Event Args file, such as ChangingRoleEventArgs.cs.
  2. Extract the event name from the Args file. For instance, in ChangingRoleEventArgs.cs, the event name would be "ChangingRole".
  3. Include the !-- EVENT flag at the beginning of your script. For more information on available flags, refer to this guide.
  4. Utilize placeholders such as {EVPLAYER} to reference the player affected by the event, allowing for dynamic scripting. Additional placeholders include {EVATTACKER} for the player initiating the event and {EVITEM} for items involved in the event.

Example Usage:

!-- EVENT ChangingRole
IF {SHOW:EVPLAYER:ROLE} = ClassD
SETNAME {EVPLAYER} D-{SHOW:EVPLAYER:NAME}

Actions

Clone this wiki locally