- Joined
- Dec 27, 2018
- Messages
- 72
- Reaction score
- 26
- First Language
- Français
- Primarily Uses
- N/A
Hello,
First, sorry to open another topic (especially since I still have plenty of questions in reserve) but I can't find a solution to my problem which nevertheless seems very simple.
I'm using yanfly plugins to create a skill that gives an absorption barrier to all the team. Equivalent to 10% of each member's HP until the end of the current turn.
My formula is:
<Custom Target Barrier 1 Turns>
value = target.mhp / 10;
</Custom Target Barrier 1 Turns>
My problem is that, for some reason I don't understand, whoever cast the spell benefits from this barrier for 2 turns (the turn the spell is cast + the next one).
What I would like is for the barrier to be dispelled for all my characters at the end of the turn. Anyone know a solution?
I specify that I do not use any other spell that gives barrier points. I can therefore use an event at the end of the turn to dissipate the barrier points of all my characters (whether they have them or not), but again, I tried several scripts found on forums, nothing works. JavaScript is not my strong point, neither is English v_v
(translation made by google, please ask me to rephrase if necessary)
First, sorry to open another topic (especially since I still have plenty of questions in reserve) but I can't find a solution to my problem which nevertheless seems very simple.
I'm using yanfly plugins to create a skill that gives an absorption barrier to all the team. Equivalent to 10% of each member's HP until the end of the current turn.
My formula is:
<Custom Target Barrier 1 Turns>
value = target.mhp / 10;
</Custom Target Barrier 1 Turns>
My problem is that, for some reason I don't understand, whoever cast the spell benefits from this barrier for 2 turns (the turn the spell is cast + the next one).
What I would like is for the barrier to be dispelled for all my characters at the end of the turn. Anyone know a solution?
I specify that I do not use any other spell that gives barrier points. I can therefore use an event at the end of the turn to dissipate the barrier points of all my characters (whether they have them or not), but again, I tried several scripts found on forums, nothing works. JavaScript is not my strong point, neither is English v_v
(translation made by google, please ask me to rephrase if necessary)