Hello, I am creating an event where the player loses random items on gameover and I found this script here
This script works really well in RMMZ, but it removes key items too. I do not want the player to lose key items, how should I change that script?
And a second request, it's not necessary but I would appreciate it if you can fulfill this too: What if I want to make the player lose half or any other amount of the items he has except key items?
JavaScript:
var items = $gameParty.allItems();
var count = items.length;
if (count) $gameParty.loseItem(items[Math.randomInt(count)], 1);
This script works really well in RMMZ, but it removes key items too. I do not want the player to lose key items, how should I change that script?
And a second request, it's not necessary but I would appreciate it if you can fulfill this too: What if I want to make the player lose half or any other amount of the items he has except key items?