Is there something in the API that would check for certain events that have happened in the BG. A very common example would be the flag in WSG or the gates in SoA.
bg_system_horde/alliance/neutral for ingame addons fire when stuff like this happens. Mr Eventlog and other plugins attach to these lua-events.
Im not sure how locale independent the exact events are.