As mentioned, you need to add
%2 somewhere in the
Obtain Item message on the
Terms tab in the database. E.g.
%1 x%2 found! will display like
Potion x4 found! in-game.
👋
It looks like Mog's plugin completely replaces the default display so it will need a totally different patch. I updated the plugin code I posted previously for compatibility, see the attached file~
Spoiler: plugin code v2 (MOG_BattleResult compatible)
JavaScript:
/*:
* @plugindesc Show one message per drop item, with item count.
* @help Database -> Terms -> Obtain Item:
* %2 will be replaced with the item count.
* E.g. use "%1 x%2 found!" to show "Potion x2 found!".
*
* If using MOG_BattleResult, load this plugin after Mog's.
* This plugin will use the Obtain Item message for each drop.
*
* Terms of use: free to use and/or modify for any project.
*/
if (Imported.MOG_BattleResult) { // Patch MOG's plugin
(function(alias) {
// determine & store item counts
BattleManager.getResultData = function() {
alias.apply(this, arguments);
var count = $gameTemp._bResult[3].reduce(function(a, c) {
a[c.id] = (a[c.id] || 0) + 1;
return a;
}, []);
var memId = [];
$gameTemp._bResult[3] = $gameTemp._bResult[3].map(function(item) {
item = Object.assign({}, item); // shallow clone so name change does not persist
item.name = TextManager.obtainItem.format(item.name, count[item.id]);
return item;
}).filter(function(item) { // cannot filter directly on cloned references
if (memId.indexOf(item.id) < 0) {
memId.push(item.id);
return true;
}
return false;
});
};
})(BattleManager.getResultData);
} else { // Patch core-script
BattleManager.displayDropItems = function() {
var drops = [], count = [];
for (var item of this._rewards.items) {
if (drops.indexOf(item) < 0) drops.push(item);
count[item.id] = (count[item.id] || 0) + 1;
}
if (drops.length > 0) {
$gameMessage.newPage();
for (var item of drops) {
$gameMessage.add(TextManager.obtainItem.format(item.name, count[item.id]));
}
}
};
}
As before, this will replace the name of each unique drop item with the Obtain Item message on the Terms tab in the database. For example, you can edit it to something like
%2x %1 to have items show as
4x Potion.
I did a quick test and it worked for me, so fingers crossed! (If you see no change then remember to save your project to apply Plugin Manager changes before testing.)
[Edit: modified Mog-patch code to shallow-clone reward items before renaming. Attachment updated!]
[Edit 2025-01-11: it seems this still has a problem - it only counts by ID, so 1x Item 1 and 1x Weapon 1 will display as 2x each. I posted a fix for this over here:
https://forums.rpgmakerweb.com/posts/1492937/]