I imagine this is impossible with just formula alone in the skill section, so im making a generalized question thread, hope that's okay.
Okay so, I want to do a skil, basically for a Spellsword type of char, where the skill is, they slash with their weapon then follow up with a spell blast. Obviously this would be a 2 atk/repeat skill, but i want the first one to use atk vs def and the 2nd atk to use matk vs mdef.
Is there any way to accomplish that? Or will i have to try and figure out plugins?
i do have yanflys battle core plugin and I heard of the action sequence it can do, but as far as i could tell, i couldnt do 2 different formulas for the same skill, it looked like just moving the battlers around on the field and such.
not impossible. although it would need a kinda long formula.
Something like this:
if (this._isScondHit) { var result = second_formula; this._isSecondHit = false ) else { var result = first_formula; this._isSecondHit = true }; result
You would need to turn the "this._isSecondHit" false at the end of action, to avoid it to be turned On if the target dies on the first hit
if (this._isScondHit) { var result = Math.min(a.mat, a.mat*(a.mat/(b.mdf*2))); this._isSecondHit = false } else { var result = Math.min(a.atk, a.atk*(a.atk/(b.def*2))); this._isSecondHit = true }; result
so that's what my formula should look like?
so let me see if i understand it..
the "if" is what makes it a conditional branch basically, the "(this._ScondHit)" sets the conditional branch to register if it's the second atk, or repeat, in an atk?
then the var result is what makes it recognize the following formula for that condition, being my Matk formula.
the "else" is what sets the formula for any hit that isnt the second hit/repeat, correct?
however im not sure what the "this._ScondHit = false/true" means/does or the "; result" at the very end, care to explain so i can learn this stuff better? 😮
EDIT: silly question
but how do i stop smilies from showing up in my post? cause i do not like the smily that appears when i use the : o thing, it is not at all how i imagine the : o to look, at all, it's a look of curiousness, not utter shocking terrifying surprise XD
Double EDIT: serious question
I'm wanting to use a similar move, now, i have a plugin that lets me do more with my targeting, so this move hits 1 enemy, then 4 random ones, it basically like 4 random enemies but i get to select who the first hit strikes. I tried using a formula similar to above, but changed the "SecondHit" to "FirstHit" cause I wanted the first hit to be more powerful than the next 3 random hits, but no matter what i do with the formula, it either ends up giving me the weaker formula for the 3 random hits, or the 2nd and 4th hits end up being the ones that do increased damage x.x
is there a way i should be tweaking the above formula to suit this need?