I'm working on a Necromancer mod and I'm trying to track down how the game populates troops into the post-battle screen. Specifically the game takes units at the end of combat that didn't die, and you can take them prisoner. Has anyone found out where/how the game does this at?