Link to plugin: http://yanfly.moe/2017/03/24/yep-130-battle-system-standard-turn-battle-rpg-maker-mv/
This plugin lets turn order be determined by a battler's agility. However, I want the battler's agility to matter at the start of battle and the turn order to be randomized. I want the turn order to be static after the start of battle.
For the randomized start, I want each battler's agility to be calculated by: Math.randomInt(20) + Math.floor((agi-10)/2)
Right now, my only options are to have turn order randomized after every action by putting my formula in the Action Speed parameter of Yanfly's STB plugin settings, or to have turn order based on a static value (e.g. battler agility).
Call for help
Please, please help. I have tried things like storing each battlers' random speed value into a variable on turn order 1, and then having subsequent turns reference this number. In theory, I think this is kind of the solution that would work, but I keep getting errors because I don't know what variables/script calls to use.
I've tried searching through the rpg_objects.js file, and the plugin files, but anything I copy and paste seems to throw an error. I don't really know enough about javascript to figure this out on my own, although I have been trying to educate myself.
I could even be on the totally wrong track and there could be some simple solution that I've overlooked, I really don't know. So I am turning to you all to please help if you know how I can make this work for my game. Without this element, I lose a lot of the type of strategy I was hoping to have for my battle system. If you know that what I want is actually not possible, please let me know as well because then I can start thinking of some alternative instead 🙁
This plugin lets turn order be determined by a battler's agility. However, I want the battler's agility to matter at the start of battle and the turn order to be randomized. I want the turn order to be static after the start of battle.
For the randomized start, I want each battler's agility to be calculated by: Math.randomInt(20) + Math.floor((agi-10)/2)
Right now, my only options are to have turn order randomized after every action by putting my formula in the Action Speed parameter of Yanfly's STB plugin settings, or to have turn order based on a static value (e.g. battler agility).
Call for help
Please, please help. I have tried things like storing each battlers' random speed value into a variable on turn order 1, and then having subsequent turns reference this number. In theory, I think this is kind of the solution that would work, but I keep getting errors because I don't know what variables/script calls to use.
I've tried searching through the rpg_objects.js file, and the plugin files, but anything I copy and paste seems to throw an error. I don't really know enough about javascript to figure this out on my own, although I have been trying to educate myself.
I could even be on the totally wrong track and there could be some simple solution that I've overlooked, I really don't know. So I am turning to you all to please help if you know how I can make this work for my game. Without this element, I lose a lot of the type of strategy I was hoping to have for my battle system. If you know that what I want is actually not possible, please let me know as well because then I can start thinking of some alternative instead 🙁