I am getting gold drops after battle from enemies that are set to drop 0 gold, does anyone have a fix for this?
MV Yanfly Victory Aftemath (MV) bug/error regarding Gold drops from battle
Javascript/Plugin SupportCan you show screenshots of your database setup and the aftermath screen, please?
Like this? The in-game pic is from the Troop's BattleTest from within the database, but I've also seen it work in-game so I figured they'd be the same.
And your test troop definitely only has a single Hornet enemy in it?
Nope, three Hornets.
Oh, this has sparked a memory. I'm sure I helped someone else with this exact issue before where they were getting gold gains from an enemy set to 0 and didn't know why. I can't remember how we solved it though, give me a bit to rack my brains.
While Trihan is thinking...does it happen if you turn off all your plugins? If not, try turning them on one at a time until you can see which one is causing it.
I think I also need the answer to this. And also the list of which plugins you're using besides Victory Aftermath.
Its been a while since I've gone through these I forgot I had so many lol
EDIT: YOOOOO so I looked into YEP_EnemyLevels and I think the Gold variance segment of that script might be the culprit. I turned it off and after a couple battles it seems to have fixed the issue.
Yep, I had a feeling it was that and I'm pretty sure that's what it was for the last thing. The default formula for gold is
base * (1 + (level - 1) * rate) + (flat * (level - 1))
Assuming a level 5 enemy with default rate of 0.15 and flat growth of 10, that would be
0 * (1 + (5 - 1) * 0.15) + (10 * (5 - 1))
->
0 * (1 + 4 * 0.15) + (10 * 4)
->
0 * 1.60 + 40
->
0 + 40
And you'll end up getting 40 gold from that enemy even though they have a base of 0.
Yup, I set the growth rates in that plugin to 0 across the board and I haven't seen the bug yet. Works for me...just user error yet again lol
Original thread: https://forums.rpgmakerweb.com/threads/yanfly-victory-aftemath-mv-bug-error-regarding-gold-drops-from-battle.149656/