OK, I've done what I wanted to the MPTLs and the Keldabe Dreadnoughts - how would I go about stopping Mandalorians from making the first move against Boba Fett 9but if he attacks them, they fight back)?
Eh.. Anyway, I think you could get an idea of how to script events and player allegiance AI from some of the various story-driven mods out for download. Still, I think the story is also in an xml, but I'm not sure 100%.