Called when an animation changes on any Actor
Called everytime a chat message is sent in the game chat
Called each client tick which is roughly every 20ms. Shouldn't be used for extensive logical operations, reserve for GameTick
Called when a Decorative Object is removed or is no longer within render range
Called when a Decorative Object is created or became visible within render distance
Called when LocalPlayer's has received a "fake" XP drop which doesn't have any impact on stats.
Called when a Game Object is removed or is no longer within render range
Called when a Game Object is created or became visible within render range
Called when the game state changes such as logging in, changing worlds, loading etc
Called every game tick which is roughly 0.6s on the client thread
Called when a Graphics Object is created or became visible within render distance
Called when a Ground Object is removed or is no longer within render range
Called when a Ground Object is created or became visible within render distance
Called when an Actor's interacting has changed
Called when an ItemContainer has changed such as your inventory or bank etc..
Called when an TileItem has despawned
Called when an TileItem has spawned
Called when a key is pressed down
Called when any Menu Entry has been added. Please note, menu entries are added every frame / client tick! (roughly 20ms)
Called when a menu has been opened
Called when any Menu Entry has been clicked
Called when a player has logged out / died or is no longer within render range
Called when a player has spawned or became visible within render range
Called when a projectile has moved in the game, could be used for detecting when a projectile has spawned!
Called when the script shuts down, should be used to clean up any references
Called when the script starts, should be used to setup variables
Called when the LocalPlayer's stat has changed
Called when a Wall Object is removed or is no longer within render range
Called when a Wall Object is created or became visible within render distance
Called when a widget was loaded such as your inventory or bank
Contains a reference to all the game events. To use an event, copy the event name and define your own function making sure to include required parameters. Events are important for reacting to what is changing in the game. For example, if you wanted to equip an item when the player animation changes to a specific one. You may use the OnAnimationChanged event to listen for the change instead of checking the player's animation each game tick. We recommend using the param decorator when data is required in an event as it provides clarity on what the event data represents inside the editor. In addition, you can right-click inside the editor -> Command Palette and search for the event name to insert a definition automatically
Example
See how you can "subscribe" to a Runelite Event which takes an event parameter. Replace param below with a multi-line comment for editor type support