I've been playing with the fire emblem modding tools for a few days now, and I finally got around to writing custom events. I Injected the event into my own custom map, and it loads up fine: All the units I placed are there, everything works, I can attack enemies, etc. But, after turn 1 is finished (as in both player and enemy parties have finished their first actions) the game goes back to the main menu. I can't for the life of me figure out what the issue is.
Here's the event I wrote, nothing special, just a custom test map with some random enemies, no cut scenes or anything: