I'm currently working on a script that loots prisoners for equipment, and changes them to naked prisoners.
I'm having trouble with the inventory part, though: as you can see from the code below, for every prisoner stack I store the troop_id and the number of instances, then add and equal number...