Multiple hits and damage formulas

Ptolam

Warper
Member
Joined
Jul 18, 2016
Messages
4
Reaction score
0
First Language
French
Primarily Uses
Hi, I'm using Yanfly Target Core and BOB Custom Stats plugins to build my basic attack skill. It hits multiple times, based on the user's attack speed. For that part, I kind of succeed, with something like that :


<Custom Target Eval>
var hits = Math.ceil(user.vitatk);
var lastHit = user.vitatk % 1;
hits = hits.clamp(1, 5);
this._totalHits = hits;
this._lastHitMultiplier = lastHit;

while (hits--) {
targets.push(target);
}
</Custom Target Eval>


The thing is, when it comes to evaluate how much damage each hit will deal. For instance, an actor with 2.40 attack speed should hit 3 times, with the last one being only 40% of my damage formula.


Is there an easy way to do it?


Thanks in advance. :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Every RPG and MMO should let you transmog\glamour your gear so you can look the way you want.
So, to clear up things, this section is to speak about personal life stuff and such? or maybe upload game content?
excerpt from my game FW: WHAT?! You want me to shear sheep? I had servants, who had servants, that had servants that did peasants work. Vincent: Do you see any of your servants here? FW: Well... no. Of course not. Vincent: Then get to work.
The dumbest mechanic I just encountered today : boss recovers 10% HP when a party member is KO-ed, who thinks this is a great idea again...?
Apparently my brain took a holiday today, so far I've stared blankly at the maker for 3 hours. Duuuuuuuuh.

Forum statistics

Threads
97,758
Messages
946,769
Members
128,968
Latest member
richardkimnyc
Top