I'm slightly baffled. Where do I edit the code? Is it via javascript or the plugin?
If it IS javascript, is it possible if you could do a personal one for me, as I do not have javascript? Thanks anyway if you aren't able to 🙂
I'm slightly baffled. Where do I edit the code? Is it via javascript or the plugin?
Here's what it looks like in mine. I don't believe I have any plugins that would modify the item menu behavior, and I haven't modified the game's core scripts of my project. (Don't minde the background map; it's a debug room 😛 )
<damage formula>if (a.isEnemy()) { value = a.atk * 4 - b.def * 2;} else { var weapon = a.equips()[0] if (!weapon) { value = a.atk * 4 - b.def * 2; } else if (weapon.wtypeId === 1) { value = a.atk * 8 - b.def * 4; } else if (weapon.wtypeId === 2) { value = a.atk * 6 - b.def * 3; } else { value = a.atk * 4 - b.def * 2; }}</damage formula>wtypeId is the weapon type ID
That is unbelievable awesome, these damage formulas give a whole new level of depth to the game!
It would be just weapon.id 🙂
I'll try that and see what happens.
I came here to post this and luckily read through the posts first. It makes me sad that the way MV is coded that it makes this hard to do. I really hope all of the expert coders in this community can come up with a way to bypass this so we can have a true no-wait ATB! 🙂 Only making this post to add to the list of people who really do desire this functionality!
TypeError: Cannot read property 'startAnimation' of undefined at file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_CoreEngine.js:1594:20 at Array.forEach (native) at Window_BattleLog.showNormalAnimation (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_CoreEngine.js:1593:18) at Function.BattleManager.actionActionAnimation (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_BattleEngineCore.js:1816:23) at Function.BattleManager.processActionSequence (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_BattleEngineCore.js:1453:16) at Function.BattleManager.processActionSequence (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_X_ActSeqPack1.js:838:58) at Function.BattleManager.processActionSequence (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_X_ActSeqPack2.js:542:58) at Function.BattleManager.processActionSequence (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_X_ActSeqPack3.js:382:58) at Function.BattleManager.processActionSequence (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_X_BattleSysATB.js:1107:57) at Function.BattleManager.updateActionTargetList (file:///E:/Projects/Games/MoonGuardians01/js/plugins/YEP_BattleEngineCore.js:1409:15)
Thanks for the catch and detailed explanation! Others have mentioned the same bug to me before, but since they didn't explain how they got it, I wasn't sure of how to replicate it. But now that I managed to do it, I managed to fix it, too!
I'm sorry but it didn't seem to of worked. I have a few questions though. You state that this is a bug with MV's database as a whole, and I would imagine that the MV team is working hard to iron out that kind of thing. So even though I can't get this to work right now, what would you say the likelihood of the bug in MV being fixed and the problem resolving itself as a result. Is the bug already reported?
Hi yanfly,
When you set a variable directly like that from the raw data, it will not retrieve anything but specifically item 25. To which, if you're using independent items for the item category, it will yield nothing because independent items have their own specific item ID's. Use $gameVariables.setValue(100, $gameParty.numIndependentItems($dataItems[25])) instead.
Dear, Yanfly.
There was a small update this morning that should fix that issue. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/yep-yanfly-engine-plugins.48860/