I'm slowly porting my MV project to MZ. This is a key skill to one of my characters that I learned from Yanfly's tips and tricks and I modified to my own. But the skill was mostly custom evals in the note box. Would this be easier to recreate in MZ?
I use visustealla action sequences and the concept is a simple action sequence repeats itself depending on how high the users agility is. For every 20 points of agility or so, the sequence repeat 1 more time.
here's the link to video and set up:
Thanks in advance for any advice!
I use visustealla action sequences and the concept is a simple action sequence repeats itself depending on how high the users agility is. For every 20 points of agility or so, the sequence repeat 1 more time.
here's the link to video and set up:
// Target Core
// Calculates the total hits when scaled off AGI.
<Custom Target Eval>
// Formula to calculate the number of hits achieved.
var hits = Math.floor(user.agi / 34);
// Set a minimum of 1 hit and a maximum of 5 hits.
hits = hits.clamp(1, 5);
// Create the variable needed to keep track of damage dealt.
this._totalThiefDamage = 0;
// Create the variable needed to keep track of current hits.
this._currentThiefHits = 0;
// Create the variable needed to keep track of total hits.
this._totalThiefHits = hits;
// Create a loop that adds the target for the skill.
while (hits--) {
// Add the target into the valid targets pool.
targets.push(target);
}
</Custom Target Eval>
// Selection Control
// If using Selection Control, this will make the skill a melee skill.
<Select Conditions>
Front Row Only
</Select Conditions>
// Skill Core
<After Eval>
// Get the hit results of the target.
var result = target.result();
// Check if the current hit has connected.
if (result.isHit()) {
// Increase the total damage dealt.
this._totalThiefDamage += result.hpDamage;
}
// Increase the current hit count.
this._currentThiefHits += 1;
// Check if the current hit count has reached the total hit count.
if (this._currentThiefHits >= this._totalThiefHits) {
// The rate of how much damage will be healed for the user.
var rate = 0.30;
// Calculate the heal value.
var heal = Math.ceil(this._totalThiefDamage * rate);
// Set Variable 1 to contain the heal amount.
$gameVariables.setValue(1, heal);
}
</After Eval>
// Action Sequences
// Moves user to the front of the enemy.
<Whole Action>
move user: targets, front, 20
</Whole Action>
// For each hit, the user will lunge at the enemy.
<Target Action>
action animation: target
move user: target, base, 10
motion attack: user
wait for movement
action effect
jump user: 100, 20
move user: target, front, 20
face user: forward
wait for movement
</Target Action>
// After all the hits are done, the user jumps backwards and then heals.
<Follow Action>
jump user: 300%, 60
move user: return, 60
wait for movement
animation 41: user
wait for animation
se: Play Recovery
hp +variable 1: user, show
</Follow Action>
// Calculates the total hits when scaled off AGI.
<Custom Target Eval>
// Formula to calculate the number of hits achieved.
var hits = Math.floor(user.agi / 34);
// Set a minimum of 1 hit and a maximum of 5 hits.
hits = hits.clamp(1, 5);
// Create the variable needed to keep track of damage dealt.
this._totalThiefDamage = 0;
// Create the variable needed to keep track of current hits.
this._currentThiefHits = 0;
// Create the variable needed to keep track of total hits.
this._totalThiefHits = hits;
// Create a loop that adds the target for the skill.
while (hits--) {
// Add the target into the valid targets pool.
targets.push(target);
}
</Custom Target Eval>
// Selection Control
// If using Selection Control, this will make the skill a melee skill.
<Select Conditions>
Front Row Only
</Select Conditions>
// Skill Core
<After Eval>
// Get the hit results of the target.
var result = target.result();
// Check if the current hit has connected.
if (result.isHit()) {
// Increase the total damage dealt.
this._totalThiefDamage += result.hpDamage;
}
// Increase the current hit count.
this._currentThiefHits += 1;
// Check if the current hit count has reached the total hit count.
if (this._currentThiefHits >= this._totalThiefHits) {
// The rate of how much damage will be healed for the user.
var rate = 0.30;
// Calculate the heal value.
var heal = Math.ceil(this._totalThiefDamage * rate);
// Set Variable 1 to contain the heal amount.
$gameVariables.setValue(1, heal);
}
</After Eval>
// Action Sequences
// Moves user to the front of the enemy.
<Whole Action>
move user: targets, front, 20
</Whole Action>
// For each hit, the user will lunge at the enemy.
<Target Action>
action animation: target
move user: target, base, 10
motion attack: user
wait for movement
action effect
jump user: 100, 20
move user: target, front, 20
face user: forward
wait for movement
</Target Action>
// After all the hits are done, the user jumps backwards and then heals.
<Follow Action>
jump user: 300%, 60
move user: return, 60
wait for movement
animation 41: user
wait for animation
se: Play Recovery
hp +variable 1: user, show
</Follow Action>
Thanks in advance for any advice!