Hello people!
The idea under this effect is simple enough.
Its a skill that automatically selects two random dead members of the party to bring them back from KO.
Im working with Yanfly's Selection control but I guess I cannot find the right formula.
For reference, below is the formula that Yanfly uses to make a skill which targets between 5 and 10 random foes and causes some damage to them.
Also Action sequence plugin is used as well.
Thanks in advance!
<Custom Target Eval>
var times = 5 + Math.randomInt(6);
var members = foes.aliveMembers();
while (times--) {
var member = members[Math.floor(Math.random() * members.length)];
targets.push(member);
}
</Custom Target Eval>
<whole action>
perform start
motion standby: user
wait for movement
face user: targets
</whole action>
<target action>
motion attack: user
wait: 10
animation 38: target
attack animation: target
wait: 10
action effect
</target action>
<follow action>
Immortal: targets, false
wait for animation
<follow action>
The idea under this effect is simple enough.
Its a skill that automatically selects two random dead members of the party to bring them back from KO.
Im working with Yanfly's Selection control but I guess I cannot find the right formula.
For reference, below is the formula that Yanfly uses to make a skill which targets between 5 and 10 random foes and causes some damage to them.
Also Action sequence plugin is used as well.
Thanks in advance!
<Custom Target Eval>
var times = 5 + Math.randomInt(6);
var members = foes.aliveMembers();
while (times--) {
var member = members[Math.floor(Math.random() * members.length)];
targets.push(member);
}
</Custom Target Eval>
<whole action>
perform start
motion standby: user
wait for movement
face user: targets
</whole action>
<target action>
motion attack: user
wait: 10
animation 38: target
attack animation: target
wait: 10
action effect
</target action>
<follow action>
Immortal: targets, false
wait for animation
<follow action>