MV [YEP_ItemCore, YEP_EnemyLevels] Scaling item drops based on enemy level

I would like to be able to scale the base stats of a dropped item by the enemy that dropped it. I use a variable to scale up the enemy levels, so scaling by that variable would also work. Ideally, I would like to define a custom formula by which items are scaled.
Would YEP_EnemyMoreDrops dont work?
as you can set a condition to them.

so using a variable or enemy levels could be used for their drop
to increase, to lower, under a state condition or never if they are to heigh/low
Would YEP_EnemyMoreDrops dont work?
as you can set a condition to them.

so using a variable or enemy levels could be used for their drop
to increase, to lower, under a state condition or never if they are to heigh/low
How do I use that to modify the stats of the item?
You can't use the plugins you listed to easily do what you want.

As the system stands, the function in the code that spawns a dropped item doesn't know anything about the enemy that dropped it. You would have to write a new plugin that causes the drop calculation portion (which does have a reference to the enemy) to store the level someplace so that the item creation part can then reference that.

A simpler solution is to create a series of similar items at different power levels (e.g. wooden sword, shortsword, longsword, Excalibur), then use the More Drops plugin to control which one drops based on the enemy's level.
You can't use the plugins you listed to easily do what you want.

As the system stands, the function in the code that spawns a dropped item doesn't know anything about the enemy that dropped it. You would have to write a new plugin that causes the drop calculation portion (which does have a reference to the enemy) to store the level someplace so that the item creation part can then reference that.

A simpler solution is to create a series of similar items at different power levels (e.g. wooden sword, shortsword, longsword, Excalibur), then use the More Drops plugin to control which one drops based on the enemy's level.
If it doesn't know the level of the enemy, can it still know the value of $gameVariables.value[11]?
Game variables are global, anything can reference them if you add it to the appropriate piece of code.

So I suppose you could do something like a troop event that stores the levels of the enemies into game variables, then use item drop code that references those variables. But I still don't see a way to look at which specific enemy caused a specific item's drop, if there's any possibility that your enemies will be different levels within a troop.
Game variables are global, anything can reference them if you add it to the appropriate piece of code.

So I suppose you could do something like a troop event that stores the levels of the enemies into game variables, then use item drop code that references those variables. But I still don't see a way to look at which specific enemy caused a specific item's drop, if there's any possibility that your enemies will be different levels within a troop.
The enemy levels ranged based on $GameVariables 11, so it's fine. What would the troop event look like though? How does it identify what item an enemy dropped?
Well, if you are making your enemy levels be based on variable 11, and you're fine just using that value, then what would you need a troop event for?

How does it identify what item an enemy dropped?
Unless I misunderstand your question, this is exactly what I said you can't do.

You have a variable representing the level range of enemies. You have the On Creation Eval notetag from Item Core. Please clarify which part of the process you still need help with.
Well, if you are making your enemy levels be based on variable 11, and you're fine just using that value, then what would you need a troop event for?


Unless I misunderstand your question, this is exactly what I said you can't do.

You have a variable representing the level range of enemies. You have the On Creation Eval notetag from Item Core. Please clarify which part of the process you still need help with.
Given your response I think it's more likely I'm the one who misunderstood what you said.

I did find the section on the <On Creation Eval> but does not seem to list all of the possible commands. Only item.price. So, is there a list I can refer to?
The database fields in the Weapons tab of RPG Maker.
Screenshot 2023-01-18 114745.jpg
The parameters are an array, in the order listed in the database. So it starts with params[0] is atk and params[7][ICODE] is mmp.
Oh boy there's a lot I can do with this. I'll need to figure out a good formula for scaling.

No issues here, right?

<On Event Creation> var level = $gameVariables.value[11] item.price = level * 10 item.params[0] = level * 5 </On Event Creation>
I think its more $gameVariables.value(11) as [11] was for vx/vxace on ruby.
but I dont see any issues furter though.

didn't mess with lunatic code.
@ShadowDragon is correct, function calls use parentheses, not brackets.
Ah I see. That's why it's written different on some posts.

Original thread: https://forums.rpgmakerweb.com/threads/yep_itemcore-yep_enemylevels-scaling-item-drops-based-on-enemy-level.154211/