To summon a spirit, I think you change party members during battle if Summon skill is used. Then after a few turns (or dead spirit), just switch back to the normal party. It can all be done in the event menu in Battle Groups or something in the database.
Tell me when, and I can set up the "text from .txt files in dynamic text boxes" for you.