Hi guys 😠, I am writing in the forum because I have a problem with the project I am carrying out.
I've been looking for a solution on my own for some time, but since I can't figure it out, I rely on you.
I apologize if the request is not fully understandable.
I'll explain the situation:
In the project I have skills that, every time they hit the target, raise and / or lower variables.
I set the skill and added a simple common event that would allow me to do it.
Then the problem become starting the common event based on the result of the attack, that is, if the ability hit the enemy the common event trigger, if the ability missed no.
I solved it by creating a "state" that made it clear that the enemy / player was hit, so with a conditional branch I set the variable to increase only when, in fact, the enemy and the player were under the effect of the state.
Now I am faced with another dilemma concerning multiple strike skills.
If I set an ability to hit twice or more, I would like the variable to be calculated for all the hits, so I only increase it for those hits that strike. With one-hit skills, the "state" trick helps, but in the case of skills with two-hit or more, I don't know how to move.
I use Yanfly's battle engine core plugin, if you need screenshots or anything else there is no problem.
I hope you understand the problem and thank you in advance.
👋
I've been looking for a solution on my own for some time, but since I can't figure it out, I rely on you.
I apologize if the request is not fully understandable.
I'll explain the situation:
In the project I have skills that, every time they hit the target, raise and / or lower variables.
I set the skill and added a simple common event that would allow me to do it.
Then the problem become starting the common event based on the result of the attack, that is, if the ability hit the enemy the common event trigger, if the ability missed no.
I solved it by creating a "state" that made it clear that the enemy / player was hit, so with a conditional branch I set the variable to increase only when, in fact, the enemy and the player were under the effect of the state.
Now I am faced with another dilemma concerning multiple strike skills.
If I set an ability to hit twice or more, I would like the variable to be calculated for all the hits, so I only increase it for those hits that strike. With one-hit skills, the "state" trick helps, but in the case of skills with two-hit or more, I don't know how to move.
I use Yanfly's battle engine core plugin, if you need screenshots or anything else there is no problem.
I hope you understand the problem and thank you in advance.
👋