- Joined
- May 26, 2017
- Messages
- 18
- Reaction score
- 1
- First Language
- Spanish
- Primarily Uses
- RMMV
Hi everyone!
I've been using RPG Maker MV for a couple months now and I have a problem with this formula, which I've tweaked several times and I haven't been able to get right (I'm kinda noob with formulas so I tend to stick with the generic ones).
My goal for this skill is to be the normal attack for one of the characters. It should deal normal attack damage, however, the player can use another skill (let's call it "Focus") to increase variable 21, thus making this skill deal much more damage after a maximum of 3 charges. This attack also resets the number of charges by calling a common event that sets variable 21 to 0. The increased damage works just as I wanted, as well as the resetting event and the Focus skill. However, on the first use IN THE ENTIRE GAME this skill always deals 0 (unless it misses), regardless of enemy, enemy defense, weapon, or number of charges (same for battle tests). From the second onwards using it on any enemy it works like it's supposed to (even if the first try missed), dealing normal damage without charging and dealing increased damage according to the number of charges. I've tried several variations in the formula and I haven't been able to get rid of this annoyance, so any correction would be appreciated.
Since this only occurs on the first use ever of the skill I ignored it, but recently I added yanfly's damage core to my game and any enemy hit with this very first attack becomes impervious to any damage for the rest of the battle, that is, the game shows the damage being dealt, but it doesn't deduct anything from the enemy's HP (the first attack still deals 0), even if it comes from other attacks or other party members. At first I thought the enemy became immortal, but I installed Yanfly's Visual HP gauges and saw the gauge wouldn't decrease at all. Damage core's formulas are in the default settings, the only thing I've changed was setting both damage caps to 9999 (I do have a ton of other plugins, but this second problem only happens when damage core is on). I haven't tried the notetag style of formulas that damage core allows because I've yet to learn it properly (I'll be honest, I was only using the plugin for the damage caps).
Any help would be appreciated, thanks in advance!
I've been using RPG Maker MV for a couple months now and I have a problem with this formula, which I've tweaked several times and I haven't been able to get right (I'm kinda noob with formulas so I tend to stick with the generic ones).
Code:
v[21] === 0 ? a.atk * 4 - b.def * 2 : v[21] * a.atk * 4 - b.def * 2 ;
Since this only occurs on the first use ever of the skill I ignored it, but recently I added yanfly's damage core to my game and any enemy hit with this very first attack becomes impervious to any damage for the rest of the battle, that is, the game shows the damage being dealt, but it doesn't deduct anything from the enemy's HP (the first attack still deals 0), even if it comes from other attacks or other party members. At first I thought the enemy became immortal, but I installed Yanfly's Visual HP gauges and saw the gauge wouldn't decrease at all. Damage core's formulas are in the default settings, the only thing I've changed was setting both damage caps to 9999 (I do have a ton of other plugins, but this second problem only happens when damage core is on). I haven't tried the notetag style of formulas that damage core allows because I've yet to learn it properly (I'll be honest, I was only using the plugin for the damage caps).
Any help would be appreciated, thanks in advance!

