updated xml writing

now does triggers ships and castaways. triggers need to be expanded