Creating a different skill

Hello everyone, I hope I am writing in the right place.
I have a question about creating a skill and I don't know if I need to use a plugin or if it is possible to do this with variables or something else.
My idea is to create an ability that directly hits only 1 enemy, but the rest of the enemies take a little damage.
For example: There are 3 enemies, character A uses this ability against enemy 1, causing 5 damage and causing enemy 2 and 3 to receive 1 point of damage.
In case I need a plugin, I have many saved, so it wouldn't be a problem.
Thank you so much!
I would use Yanfly's Skill Core. Give the skill the notetag:
Code:
<Post-Damage Eval>
$gameTroop.aliveMembers().forEach(enemy => {
    if (enemy!=target) {enemy.gainHp(-1); enemy.startDamagePopup()}});
</Post-Damage Eval>
I would use Yanfly's Skill Core. Give the skill the notetag:
Code:
<Post-Damage Eval>
$gameTroop.aliveMembers().forEach(enemy => {
    if (enemy!=target) {enemy.gainHp(-1); enemy.startDamagePopup()}});
</Post-Damage Eval>
Oppps, I got this error...
Sin título.png
Are you running an outdated version of MV? If you go to your js folder and open rpg_core.js in a text editor, what version does it say at the top?

MV was updated to work with arrow functions in, like, 1.5 or something.

If you're running code that old, you should consider updating it to the current version to fix bugs in the codebase - but you'll also need to check for updated versions of any plugins you're using.
Are you running an outdated version of MV? If you go to your js folder and open rpg_core.js in a text editor, what version does it say at the top?

MV was updated to work with arrow functions in, like, 1.5 or something.

If you're running code that old, you should consider updating it to the current version to fix bugs in the codebase - but you'll also need to check for updated versions of any plugins you're using.
I have rpg_core.js version 1.5.1
I use Yanfly's Skill Core version 1.13 (it's the last version).
The Auto Passive States plugin is mentioned in the error. Can it have anything to do with it?
That plugin is also from Yanfly...
MV has been at version 1.6 for 5 years. 1.5.1 is very out of date.

You can follow the instructions to update your project in any of the update release threads:

The Auto Passive States plugin is mentioned in the error. Can it have anything to do with it?
No. If you read the error, it says it's an error in the post-damage eval. But there is no error in the code I provided, it's just that your MV codebase is too old to recognize the syntax.
MV has been at version 1.6 for 5 years. 1.5.1 is very out of date.

You can follow the instructions to update your project in any of the update release threads:


No. If you read the error, it says it's an error in the post-damage eval. But there is no error in the code I provided, it's just that your MV codebase is too old to recognize the syntax.
The problem is that I'm too afraid to update the program and the plugins will stop working...
MV lleva 5 años en la versión 1.6. 1.5.1 está muy desactualizado.

Puede seguir las instrucciones para actualizar su proyecto en cualquiera de los hilos de la versión de actualización.
Hello, sorry for the double post.
I have followed your instructions and updated it.
There is a project that exploded (I don't know why, but the screen went black), but luckily I had a backup.
Regarding the code you gave me for the skill, it works perfectly now, thank you so much^^
I would like to do other skills that are a bit... "strange" and I'm almost sure it's possible to do them the same way.
If I indicate here what I would like the skills to do, could you give me a helping hand?
Thank you very much again!

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-different-skill.163574/