MV Help with Compatibility issues for HIME_MoreEnemyDrops

So I want to use this plugin for my enemy drops since this plugin can determine the amount of each item to be given not just one at a time. Like you can use a variable to give extra potions instead of just one at a time. Yanfly's plugin doesn't have that option, but I wish it did.

As it is, HME's plugin has a bunch of compatibility issues with other plugins I have... and need so I can't get rid of them.

This is the error:
Error 1.png


And this is the Console:
Error 2.png


Plugin list:
Console error_Plugin list.png

This list doesn't have YEP_ItemCore - since I believe I accidentally cut it off when piecing it together in a single image.

I don't know what any of that means... Any help would be appreciated. However, I would like a patch for the HIME plugin to work with my plugins... Barring that, if there could be a patch for Yanfly's plugin to allow changing the amounts of items given that would be awesome too.

Let me know if there is any thing I can do to help.
First thing, most people will tell you is to check you YEP plugin order. If those plugins are out of order, it can cause a lot of unforeseen issues within your game. You can check the order here.

**EDIT*** Also, Extra_Enemy_Drops_(YEP)
First thing, most people will tell you is to check you YEP plugin order. If those plugins are out of order, it can cause a lot of unforeseen issues within your game. You can check the order here.

**EDIT*** Also, Extra_Enemy_Drops_(YEP)
Yep... I've already got the plugins in the right order according to the Plugin List on This Site.

Second... As I mentioned in my original post, Extra Enemy Drops does not allow for variable amounts. You can place multiple of the same item over and over again to get more of that item, but if you want to have that option be determined by a variable then you can't.

Let me see if I can explain this better:
Extra Enemy Drops:
Code:
<Conditional Item 1 Drop>
  VARIABLE 1 === 1: 50%
</Conditional Item 1 Drop>
This code can be repeated as many times as you want to get this item over and over again at a 50% rate as long as the variable is at 1.
But there is no option to allow you to determine the actual amount of the item given by variable.

Something like HIME's script which is like this:
Code:
<enemy drop>
  item_code: "i1",
  amount: v.value(1),
  chance: "50"
</enemy drop>
or
Code:
<enemy drop>
  item_code: "i1",
  amount: 5
</enemy drop>

which will now give my player 5 of item 1 without having to make multiple copies of the same code. Plus, if I want to make the item amount based on a stat [say the combined Luck stat of the entire party]... Like if the combined party LUck is over 100 then give 1 item, and add a plus one item for every 100 Luck the party has. So they could get 5 items if they have a combined Luck stat of 500.

Using HIME's plugin that would be a simple Notetag... Using YEP_ExtraEnemyDrops I would have to place a Notetag for each item that could be given at each variable change.

Something like this:
Code:
<Conditional Item 1 Drop>
VARIABLE 1 === 4: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 4: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 5: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 5: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 5: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 5: 100%
</Conditional Item 1 Drop>
<Conditional Item 1 Drop>
VARIABLE 1 === 5: 100%
</Conditional Item 1 Drop>

And I would have to do that every single possibility I can think up.
I looked to see if any of my plugins were in there. None seen. Oh well.

That aside, making the edit to YF drops looks like fun and would probably be a safer route considering you already use so many YF plugins, so I'll look into it, time permitting.

So you'd like to be able to designate a number of items to get per tag, correct?
@firestalker
Your error has absolutely nothing to do with any incompatibility or any other plugin.

"syntax error" is the computer's way of telling you "you made a typo" or "you wrote nonsense".
So you should start with a screenshot of whereever you made the notetag for the use of that plugin, and we can check what mistake you made in the notetag.
@firestalker
Your error has absolutely nothing to do with any incompatibility or any other plugin.

"syntax error" is the computer's way of telling you "you made a typo" or "you wrote nonsense".
So you should start with a screenshot of whereever you made the notetag for the use of that plugin, and we can check what mistake you made in the notetag.
But the error is an "Invalid or Unexpected Token" error... Is that the same thing?

This is the Notetag:
Code:
<enemy drop>
item_code: "i22",
amount: "2",
chance: “90”
</enemy drop>
I changed it from this one to see if the variable was the reason but I got the same error for each:
Code:
<enemy drop>
item_code: "i22",
amount: v.value(80),
chance: “90”
</enemy drop>

I looked to see if any of my plugins were in there. None seen. Oh well.

That aside, making the edit to YF drops looks like fun and would probably be a safer route considering you already use so many YF plugins, so I'll look into it, time permitting.

So you'd like to be able to designate a number of items to get per tag, correct?
If possible that would be great. Instead of having 5 note tags to get 5 item 1s If I could just do one note tag and have the amount in that note tag that would be great. I would also love to have the amount be able to use a variable as well... Thanks.

Maybe something like:
Code:
<Enemy Drops>
  Item 1: $gameVariable.value(1), 50%
</Enemy Drops>
Or maybe something similar?
But the error is an "Invalid or Unexpected Token" error... Is that the same thing?
That is a detail of the error, and it basically tells you "I came to a part of a notetag that I don't understand", because tokens are part of notetags.

So please give a screenshot of where you made one such notetag
@Andar Here you go:
Notetag.png
Several possibilities.

First is that the error is later in the notetag and everything I write below has nothing to do with it.
Please test that by making a test with only the first notetag, deleting everything after that.
If that suddenly works, then we need a copy of the entire notetag because you made a typo in a later part.

If the error is in the first notetag, the part that most likely causes the syntax error is the line with v.value(80)

Please read the instructions with more care:
<enemy drop>
item_code: "ID",
amount: number,
chance: "FORMULA"
</enemy drop>

v.value(80) is part of a formula and not a direct number, as you can see in tsukihime's examples.

Now there are two possibilities, and unfortunately I couldn't determine which from the plugin code alone.

First option, you have a chance of getting it to work if you enter it as a formula as well, e.g.

amount: "v.value(80)",

If that doesn't work either, then either amount has to be a number or the error is further below in the later parts of the notetag.
Did a little digging.

The amount part of the tag doesn't allow for evals and only accepts integers.
This might be why the token error is popping up.

I can try to add the eval, but I'm not super familiar with the way Hime did that function and it don't know if it would work.

(YF's is actually a bit tougher for me, so at least for now, Hime's Plugin might be easier for me, but I'll still have to figure the syntax out...)
I believe SRD has a small extension to YEP_MoreEnemyDrops to allow bulk drops.
so you can give out 1, 3, 5 or a range of 1 - 5.

check this plugin and see if that solve your problem found [here].
Several possibilities.

First is that the error is later in the notetag and everything I write below has nothing to do with it.
Please test that by making a test with only the first notetag, deleting everything after that.
If that suddenly works, then we need a copy of the entire notetag because you made a typo in a later part.

If the error is in the first notetag, the part that most likely causes the syntax error is the line with v.value(80)

Please read the instructions with more care:
<enemy drop>
item_code: "ID",
amount: number,
chance: "FORMULA"
</enemy drop>

v.value(80) is part of a formula and not a direct number, as you can see in tsukihime's examples.

Now there are two possibilities, and unfortunately I couldn't determine which from the plugin code alone.

First option, you have a chance of getting it to work if you enter it as a formula as well, e.g.

amount: "v.value(80)",

If that doesn't work either, then either amount has to be a number or the error is further below in the later parts of the notetag.
So, I tried what you suggested... I deleted the notetags and left one there. I tried the "v.value()" and that didn't work, I got the same error. I then tried changing the notetag so that the amount is number and that didn't work, same error.

So out of curiosity, I removed the chance formula and left the amount as a number... That worked, no error. So I tried to add the v.value() to the amount and nope, error again. So that seems to be one of the problems, but it also seems to be the formula condition as well.

And then out of curiosity, Again, I added $gameVariables.value(80) to the amount condition... This worked, no error.... and then re-adding the chance condition... again no error.

So, yay! And thank you for helping me out... I got the idea to try all that I because you guys pointed me in that direction. Thank you!

I believe SRD has a small extension to YEP_MoreEnemyDrops to allow bulk drops.
so you can give out 1, 3, 5 or a range of 1 - 5.

check this plugin and see if that solve your problem found [here].
Thanks for this... This could come in handy for other things. Thanks.

Did a little digging.

The amount part of the tag doesn't allow for evals and only accepts integers.
This might be why the token error is popping up.

I can try to add the eval, but I'm not super familiar with the way Hime did that function and it don't know if it would work.

(YF's is actually a bit tougher for me, so at least for now, Hime's Plugin might be easier for me, but I'll still have to figure the syntax out...)
Thanks for looking into it... I've found a way to make it work there's that. But thank you for looking into it for me. I appreciate the time you took.
<enemy drop>
item_code: "i22",
amount: "2",
chance: “90”
</enemy drop>

“90” "90"

See the difference?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-compatibility-issues-for-hime_moreenemydrops.170205/