So I have a skill called Bash & Slash, essentially the hit the enemy with a shield bash (small amount of damage + chance to stun) then they slash with their weapon for normal damage.
Is there a way I can set up dual damage?
I tried a.atk * 3 + a.def - b.def * 2; a.atk * 4 + a.def - b.def * 2 and it didn't seem to work.
you can program the damage formula with conditions and a lot of other things, but the game engine expects ONE number as a result, whatever else you put in there.
without scripts, the only thing you could do to create two damage messages instead of a single one is to make the skill call a common event and then use two force actions with two other skills on that common event. And even that is a bit complicated as the common events are executed at the end of the turn and have some target identification problems.
Scripts can do better, but that depends on what battle system you're using and how your game is set up - not exactly easy to do either, but you might request a script that creates a secondary damage effect for a skill.
Thanks for the reply. I kind of figured that, so I will go with the back up plan of just doing the damage in one sweep.
or manually do the first or the second damage... though it needs scripts if you want it to show on the battle log too...
my partition damage script for example, deals the partitions as separate damages
or use yanfly's follow up skills so that you actually run two skills instead of 1...
Could you make it hit twice then do something in the damage formula to act differently depending on whether it's the first hit or the second one? I'm not sure how, or IF, you can get to that variable from within the damage formula - maybe allocating a variable and doing a small script mod to set that variable to the hit number for multiple-hit skills, then you'll be able to access the variable in the damage formula. It still won't show different messages though.
Good suggestions. I will look into both of them. Thank you Shana and Shaz!
you can also probably opt to use the damage formula to directly reduce HP for one damage, use it to invoke battle log too... then let the normal flow of the damage formula handle the 2nd damage