- Joined
- Dec 24, 2018
- Messages
- 88
- Reaction score
- 15
- First Language
- Italian
- Primarily Uses
- RMMV
Hello(again)!
I ask help, like last time, with the BuffStatesCore Plugin by Yanfly.
This time, i wanted to make so a State's Turn Duration was determined by one of the user's Parameters(in this case i'm using Agility).
So, i used the plugin's tag "Custom State X Turn", that does the exact thing i need, in this way:
If i understood it correctly, this would make it so when i use the Skill the tag is attached to, if State 22 is applied it would endure as many turns as the final value of the variable "turn". That doesn't seem the case though.
To make a test i used a character with an Agility parameter equal to 12, which would mean:
By this logic, "turns" should return '3' as a value. Instead, when the Character uses the ability in battle and applies the State 22 to itself, the turn counter only gives "2", which is the effective base turn duration of the State in the Database.
Am i doing something wrong? Or the Tag simply doesn't work that way? Thanks in advance!
I ask help, like last time, with the BuffStatesCore Plugin by Yanfly.
This time, i wanted to make so a State's Turn Duration was determined by one of the user's Parameters(in this case i'm using Agility).
So, i used the plugin's tag "Custom State X Turn", that does the exact thing i need, in this way:
Code:
<Custom State 22 Turn>
turn = 2;
turn += Math.floor((user.agi - 10) / 2);
</Custom State 22 Turn>
To make a test i used a character with an Agility parameter equal to 12, which would mean:
Code:
<Custom State 22 Turn>
turn = 2;
turn += Math.floor((12 - 10) / 2);
</Custom State 22 Turn>
Am i doing something wrong? Or the Tag simply doesn't work that way? Thanks in advance!
Last edited:
