MV Get Enemy Level for <On Creation Eval>

Hi All,

I have all of Yanfly's plugins. I managed to get items to drop with "item.params[3] = $gameTroop._enemies[0].level);" but the problem I have is that a Troop could have enemies of different levels. Is there a way to get it so that if they're fighting a level 1, level 3, and level 10 and they all drop the item, one with be +1, the other +3, and the last +10. Or if only the level 3 drops the item based on a % chance, they will just get an item with +3.

Thanks!

Plugins:
Item Core
Enemy Levels
Extra Enemy Drops
The trick is that the item doesn't know which enemy is dropping it, so by the time you get to any notetag from Item Core, there's no connection between them.

You could try editing the makeDropItems() method from rpg_objects to set values in game variables indicating the level of the enemy that's dropping something, and then reference those variables later once the independent item has been created...
The trick is that the item doesn't know which enemy is dropping it, so by the time you get to any notetag from Item Core, there's no connection between them.

You could try editing the makeDropItems() method from rpg_objects to set values in game variables indicating the level of the enemy that's dropping something, and then reference those variables later once the independent item has been created...

Thank you 🙂. Instead of editing the file, I made the start of the battle add all the enemy's levels into a single Variable and then divide that by the length. On drop, the formula references that Variable.

Original thread: https://forums.rpgmakerweb.com/threads/get-enemy-level-for-on-creation-eval.153126/