-
Notifications
You must be signed in to change notification settings - Fork 5
Exiled Events
Saskyc edited this page Mar 31, 2024
·
4 revisions
Exiled Events are triggers that execute when specific actions occur within the game, such as a player changing roles.
Exiled Events can be found in the Exiled.Events/EventArgs directory of the EXILED repository.
- Locate the relevant Exiled Event Args file, such as ChangingRoleEventArgs.cs.
- Extract the event name from the Args file. For instance, in ChangingRoleEventArgs.cs, the event name would be "ChangingRole".
- Include the
!-- EVENTflag at the beginning of your script. For more information on available flags, refer to this guide. - 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.
!-- EVENT ChangingRole
IF {SHOW:EVPLAYER:ROLE} = ClassD
SETNAME {EVPLAYER} D-{SHOW:EVPLAYER:NAME}Actions