0% found this document useful (0 votes)
25 views

Piercing Arrow-WPS Office

This skill uses piercing arrow to target all allies in the same row as the target, as well as allies in rows ahead. It calculates damage as the user's attack and agility multiplied by a chain multiplier that is reduced by 0.15 for each additional target.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Piercing Arrow-WPS Office

This skill uses piercing arrow to target all allies in the same row as the target, as well as allies in rows ahead. It calculates damage as the user's attack and agility multiplied by a chain multiplier that is reduced by 0.15 for each additional target.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Piercing arrow skill

<Custom Target Eval>


// Get the target's current row.
var row = target.row();
// Get the target's allies.
var group = target.friendsUnit();
// Loop through each of the rows in your game.
for (var i = row; i <= Yanfly.Param.RowMaximum; ++i) {
// Get the members of the row's alive members.
var members = group.rowAliveMembers(i);
// Check if the member group is larger than 0.
if (members.length > 0) {
// Add a random target from that group.
targets.push(members[Math.floor(Math.random() * members.length)]);
}
}
</Custom Target Eval>

<Damage Formula>
// Default the chain multiplier to 1.
this._chainmultiplier = this._chainmultiplier || 1.0;
// Calculate the damage formula.
value = user.atk + user.agi;
// Apply multiplier to damage formula.
value *= this._chainmultiplier;
// Reduce the multiplier by 0.15 per target.
this._chainmultiplier -= 0.15;
</Damage Formula>

You might also like