(YEP_BuffStatesCore)Custom Status Duration?

Randor01

Veteran
Veteran
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:

Code:
<Custom State 22 Turn>  
turn = 2; 
turn += Math.floor((user.agi - 10) / 2); 
</Custom State 22 Turn>
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:

Code:
<Custom State 22 Turn>  
turn = 2; 
turn += Math.floor((12 - 10) / 2); 
</Custom State 22 Turn>
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!
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
'Plugin Releases' is where people who have written a completed plugin they want to share with others can post it.

[MOVE]Javascript/Plugin Support[/MOVE]
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top