How do you queue battle spoils then get them all after the dungeon or dungeon boss?
Example:
Defeated Troop A --> Process the rewards but hold them.
Defeated Troop B --> Same as Troop A.
Defeated Boss --> Get the rewards from Troop A, Troop B and Boss.
The easy way is if you know ahead of time what items the party is going to win. Then there's nothing to queue or store, you just run an event after the boss is defeated that gives them the items you want.
If this involves the random chance of winning items from enemies, it becomes more complicated because you'll have to make up a way to check for that chance to drop the item in place of the built-in code that calculates item drops. You'll then also need to write the process for those items getting stored.
If all of the items are unique, you could do this with regular eventing using bitwise math, but if there's a possibility of the party getting duplicates (say, 2 potions), that won't work and as best I can think you'd have to get your JavaScript on and code up this whole system.
You could see if someone's made a plugin for a party stash kind of thing, and try to send all item drops directly to the stash, and then the party has to leave the dungeon to access it, or you should be able to event the transfer of your stash to your regular inventory after the boss.