Player events scripts are identical to scripts you create for an NPC, Room, or Item except that they listen for events emitted on the player. You can have one Player Events script per bundle:
The structure of the file is identical to entity scripts, see the documentation for those in the Scripting
Input events are a bit more complex and arguably the most crucial scriptable in Ranvier, they are events that fire on the socket of the player, not the Player instance. This covers things like the user connecting to the game, logging in, typing commands, anything that deals with input itself before it gets to an actual command.
Each input event is defined in its own file inside the
input-events/ folder like so:
bundles/my-bundle/ input-events/ intro.js
In this example we'll implement the first event that ever gets fired in Ranvier: 'intro'. This is the first input event
and the only one that must be implemented if you choose to disable the default