Use a different parameter in lieu of 'agility'

I'd like to use a custom parameter defined by CrystalNoel's Custom Stats script in lieu of the default 'agility' param to determine turn order in battle.

Even deeper and more complicated, I'd like to add a bit of randomness by adding a random number (between 1-20) at the beginning of the combat for each combatant to determine turn order.

Either way, any quick script-request-avoiding ways of doing this?
No, you cannot avoid using scripts to accomplish what you want.

You will have to modify BattleManager somehow

Code:
  def self.make_action_orders    @action_battlers = []    @action_battlers += $game_party.members unless @surprise    @action_battlers += $game_troop.members unless @preemptive    @action_battlers.each {|battler| battler.make_speed }    @action_battlers.sort! {|a,b| b.speed - a.speed }  end
You can edit / alias your Game_Action and change agi to something else.

Around line 142

  #--------------------------------------------------------------------------

  # * Calculate Action Speed

  #--------------------------------------------------------------------------

  def speed

    speed = subject.agi + rand(5 + subject.agi / 4)

    speed += item.speed if item

    speed += subject.atk_speed if attack?

    speed

  end
Hm... I'll give it a try.  Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/use-a-different-parameter-in-lieu-of-agility.16578/