More Enemy Drops

Hi TH.

Been trying to get this to work, but can't seem to.

I've been trying with the tag:

<enemy drop>item_code: "i3"</enemy drop>and no drops are added.I've tried turning off all other active plugins, but that didn't work either.

I'm assuming it's the way I'm doing the tags...
If no probability is supplied, it assumes 0 at the moment.

100% seems like a reasonable default?
If no probability is supplied, it assumes 0 at the moment.

100% seems like a reasonable default?
Ah...  I didn't know that. 

Yes, 100% would be a good default.

I'll try manually adding it in for now and let you know.

Thank you.
Ah...  I didn't know that. 


Yes, 100% would be a good default.


I'll try manually adding it in for now and let you know.


Thank you.
Plugin has been updated to v1.3


I read the usage description and it states that if no drop chance is provided, it assumes 100% drop.


So this is actually a bug on my part.
Plugin has been updated to v1.3

I read the usage description and it states that if no drop chance is provided, it assumes 100% drop.

So this is actually a bug on my part.
Thank you TH.

It's working now.

But can I ask for some more assistance?

I never could figure out a way to grant a drop based on whether an enemy has a state.  Can you help with the syntax?
Thank you TH.


It's working now.


But can I ask for some more assistance?


I never could figure out a way to grant a drop based on whether an enemy has a state.  Can you help with the syntax?
Unfortunately, when an enemy dies, all states are cleared out, so you wouldn't be able to actually check for enemy states at that point.


If you had some other way to track whether the state was applied or not, however...


For example, perhaps you have a plugin that adds "permanent" states, which aren't cleared out after death.
Unfortunately, when an enemy dies, all states are cleared out, so you wouldn't be able to actually check for enemy states at that point.

If you had some other way to track whether the state was applied or not, however...

For example, perhaps you have a plugin that adds "permanent" states, which aren't cleared out after death.
I edited the original script to not remove states from enemies, which I did for the Ace version of this plugin, and that worked fine.

But even syntax like the enemy's MP would help get me started.

Thank you.
I edited the original script to not remove states from enemies, which I did for the Ace version of this plugin, and that worked fine.

But even syntax like the enemy's MP would help get me started.

Thank you.
I just realized you couldn't reference the enemy at all.

I have updated the plugin so that you could.

With the new version, you can reference the enemy using the "enemy" variable and say things like

enemy.isStateAffected(4) ? 100 : 0Which means if state 4 is applied when they died, it has 100% drop. Otherwise, 0% drop.The condition only supports one-line though, but you can have a really long line.
I just realized you couldn't reference the enemy at all.

I have updated the plugin so that you could.

With the new version, you can reference the enemy using the "enemy" variable and say things like

enemy.isStateAffected(4) ? 100 : 0Which means if state 4 is applied when they died, it has 100% drop. Otherwise, 0% drop.The condition only supports one-line though, but you can have a really long line.
Perfect!  Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/more-enemy-drops.49656/