The 24 damages dealt to the target really come from the 25 you have set from the editor. The target do not receive damage from what is indicated in the notetag. If you want that this skill makes sens, you have to edit the notetags and the different values I have fixed in order to fit your game.
The challenge of those kind of skills resides in how we can get access to the x,y coordinates of a target.
When using the AOE yanfly plugin, during pre or post-damage eval, we don't have any variable that could be used to define what are those coordinates.
If you want to use the yanfly aoe plugin, I can propose you the following set of notetags.
However, it imposes to dedicate 2 game variables to it. Those variables could correspond to variables that are used in a row and frequently erased.
This is the best I can do. If it's not enought, I'm affraid that you will need to wait for a better maker.
JavaScript:
<AOE Radius: 250>
<Custom Execution>
// Custom Execution is executed only once regardless of the scope size
$gameVariables.setValue(1,-1); // set a variable to -1.
$gameVariables.setValue(2,-1); // set a variable to -1.
// Make sure those variables are not important for your game
</Custom Execution>
<Pre-Damage Eval>
// When scope consist in multiple target, Pre-Damage Eval is executed as many times
// as there are targets. The variable target refer to the current target.
// With a yanfly AOE scope, the first target in the list is the target at the center.
var innerShell = 50; // setting what our shells will looks like.
var midShell = 100;
var outerShell = 150;
var x = $gameVariables.value(1); // the variable with ID 1 is used for x
var y = $gameVariables.value(2); // the variable with ID 2 is used for y
var target_x = target.aoeX(); // this is the x coord of the current target
var target_y = target.aoeY(); // this is the y coord of the current target
if (x === -1 && y === -1){ // x and y = -1 only for the first target.
$gameVariables.setValue(1,target_x); // store the x coord of the first target
$gameVariables.setValue(2,target_y); // store the y coord of the first target
}
// Below computing the distance between first target and current target.
dx = target_x - $gameVariables.value(1);
dy = target_y - $gameVariables.value(2);
dist = Math.sqrt( Math.pow(dx,2) + Math.pow(dy,2) );
// Below scalling the damage according to shells.
if (dist < innerShell) {
value = value;
} else if (dist < midShell) {
value = 0.75 * value;
} else if (dist < outerShell) {
value = 0.5 * value;
} else if (dist > outerShell) {
value = 0.25 * value;
}
</Pre-Damage Eval>
An alternative is to store the x and y variable inside the user. Thus, don't need to use $gameVariables
JavaScript:
<AOE Radius: 250>
<Custom Execution>
// Custom Execution is executed only once regardless of the scope size
user._targetX = -1; // set a variable to -1.
user._targetY = -1; // set a variable to -1.
// Make sure those variables are not important for your game
</Custom Execution>
<Pre-Damage Eval>
// When scope consist in multiple target, Pre-Damage Eval is executed as many times
// as there are targets. The variable target refer to the current target.
// With a yanfly AOE scope, the first target in the list is the target at the center.
var innerShell = 50; // setting what our shells will looks like.
var midShell = 100;
var outerShell = 150;
var x = user._targetX; // the variable with ID 1 is used for x
var y = user._targetY; // the variable with ID 2 is used for y
var target_x = target.aoeX(); // this is the x coord of the current target
var target_y = target.aoeY(); // this is the y coord of the current target
if (x === -1 && y === -1){ // x and y = -1 only for the first target.
user._targetX = target_x; // store the x coord of the first target
user._targetY = target_y; // store the y coord of the first target
}
// Below computing the distance between first target and current target.
dx = target_x - user._targetX;
dy = target_y - user._targetY;
dist = Math.sqrt( Math.pow(dx,2) + Math.pow(dy,2) )
// Below scalling the damages according to shells.
if (dist < innerShell) {
value = value;
} else if (dist < midShell) {
value = 0.75 * value;
} else if (dist < outerShell) {
value = 0.5 * value;
} else if (dist > outerShell) {
value = 0.25 * value;
}
</Pre-Damage Eval>