I am trying to balance speed of my skill but no mater what I do, speed is inconsistant with the skills.
Got an ennemy with agility of 50 and casting a skill with 2000 speed acting last while my actors with a 30 agility using the guard skill at invocation speed of 30 (changed to test) and still all act first. I know RPG maker mv add a random factor but thats is way too much to explain the behavior. Is there something that is hardcoded in the engine that put certains types of action first? Why put a invocation speed if its not properly used?
Normally it should work just as you intended: With guard at 30 and attack at 2000 the guy using attack should always move first. Can you provide some screenshots on how set up your skills? Plus, do you use any plugins that could interfere?
The default action order in turn based is NOT simple agi.
The default is user.agi + skill.speed + random%
then sort highest total to lowest.
So a skill with a speed of 2000 is almost always guaranteed to go first - that is the sole purpose of skill speed, to get skills that need it to go earlier.
The default formula is:
agi + skill speed + Math.randomInt(Math.floor(5 + agi / 4))
So if your character agility is 30, the largest random factor that can be added is 11.
And if I understand correctly, using Yanfly Battle Core takes away that random element by default, unless you add it back to the formula.
I tested it quickly and if you set your guard skill speed to low and an enemy attack speed to high, the enemy goes first. So some other plugin or setting is interfering with your game, or are you using some other battle system than the default?
Mind posting your plugin list? Something is definitely off here, but I dunno what it is.
*Update:
upon testing it seems that the problem occur when YEP_BattleAICore is active.
I don't see why - the AI plugin doesn't modify the function that determines action speed. It doesn't even reference speed in the entire plugin.
I think this needs to get thoroughly checked for conflicts. Make sure your plugins are in the exact order listed on the Yanfly Engine Web site. Make sure they're all the latest version - and double check that your MV project code is 1.6.2 or .2 (look at the beginning of rpg_core.js).
From what I understand, it might be because the ennemy only decide action when its his turn (that have to be agi based since skill isn't chosen yet) so the action speed isn't added. From what I've seen I will have to choose on more control on action speed versus AI that adapt to the battle.
I don't know why higher Agi wasn't first tough? Confused.. (At least I know the plugging that cause issue)
It was activated but does that mean that the issue is the actors add action speed at first (in this case 30 from the guard) and ennemy have no bonus (since no skill selected yet). Guess by having it off, would fit well for game (intelligent ai still that, like the player decide action taken at start of battle then result phase)
Tested with the plugging on but Dynamic Action off and now charge skill correctly trigger before the actor. Thanx for ATT_Turan, now can get the best of both (not dumb AI and control on action speed) 🙂