From Iron Realms Nexus Client Documentation
This trigger captures the name and incoming direction for a player when they enter the room, using the variables: <person> and <direction>. Those variables can then be used in the action section with @person and @direction to, in this case, say "hi" to the person.
Here is the trigger.
Here is a sample of what it would look like in the game.