Added support to link an event when encountering an enemy.

This is used with the Orlinn's sequence, btw.