To save anybody else wasting their time, it doesn't look like the PreBattlePanelOpen event works for what we want - I think the reason being that the only value it returns is the faction and we need the character record as well.