If you feel like making a script, make it so that when you reach 0 hp (not an ondeath script), make it so that the items you would drop would go on top of your body, instead of inside your corpse.
Since this is suppose to be an 'exam', you get bonus points if you make it so each inventory slot has it's own % chance to drop, also opening up the option to allow to protect each individual slot from dropping by outside means. (such as a 'blessing'/storage value that always saves your chest slot, for example).
For double bonus round points, make it so that you always drop your backpack (unless protected) plus one other slot chosen at random. Additionally, make the script check your frags, and (configurable), the amount of frags you have will force you to drop additional slots.
Example chart
Frags - Drop
0 Backpack + 1 random slot
1-5 Backpack + 2 random slots
5-8 Backpack + 3 random slots
8-10 Backpack + 4 random slots
10-12 Backpack + 5 random slots
12-14 Backpack + 6 random slots
14-16 Backpack + 7 random slots
16-18 Backpack + 8 random slots
18+ Backpack + 9 random slots
Goodluck!