Hello all! Was wondering if there is already a plugin out there for a post combat loot screen that lets the player choose what loot they get from combat victories. The game I am trying to make is more scavenging based where you need to gather materials for some of player's skills for stronger effects. So I don't necessarily want players to be screwed by rng for item drops. But I also don't want to flood player's inventories with a slew of items. I haven't seen anything in my forum viewings and when I try to use google it makes it sound like I want loot tables for some reason?
Example: Goblin drops = Metal Shards, Cloth, and Thread. Players beats a goblin in battle, they may choose to get Metal Shards because they want to make bullets.
Don't know if it'll be useful to you, but I use Hime's extra items drops and tie drops to states upon defeat.
So if you have a slime and beat it with a fire spell, Red Slime Gem. Ice spell, Blue Slime Gem. While poisoned, Corroded Material. And I HATE RNG regarding drops, so this all happens with 100% certainty so long as the state is applied.
Just something to consider.
this shows goblin's drops after finished the battle, is this what you wanted or i misunderstood you?!
You need to add code to actually gain the item you selected, but here's an idea that seemed to work with the base engine at least, to show select item (currently to variable 10) in processVictory. I changed the select item list method for battle scene to show the rewards.
BattleManager.processVictory = function() {
$gameParty.removeBattleStates();
$gameParty.performVictory();
this.playVictoryMe();
this.replayBgmAndBgs();
this.makeRewards();
this.displayVictoryMessage();
$gameMessage.setItemChoice(10, 0);
this.displayRewards();
this.gainRewards();
this.endBattle(0);
};
const _myEdit1_Window_EventItem_makeItemList = Window_EventItem.prototype.makeItemList
Window_EventItem.prototype.makeItemList = function() {
if (SceneManager._scene instanceof Scene_Battle) {
this._data = $gameTroop.makeDropItems();
} else {
_myEdit1_Window_EventItem_makeItemList.call(this);
}
};
BattleManager.makeRewards = function() {
this._rewards = {};
this._rewards.gold = $gameTroop.goldTotal();
this._rewards.exp = $gameTroop.expTotal();
// this._rewards.items = $gameTroop.makeDropItems();
};
BattleManager.displayRewards = function() {
this.displayExp();
this.displayGold();
// this.displayDropItems();
};
BattleManager.gainRewards = function() {
this.gainExp();
this.gainGold();
// this.gainDropItems();
};
It's for MV (might work for MZ, don't know). Copy paste it into a notepad, save as a .js file in your plugin folder and add as a plugin in the plugin manager.