fixed few things, characters can have multiple on-event functions (for the same event)