[ACE] Pre Battle Common Event (SOLVED)

Hello!
I'm looking for a script that calls a common event just befor every battle starts (Not only random encounters).
I'm gonna explain it better, the chain of events that I would like is that one:

1. The common event starts
2. The common event finishes
3. Battle transition and...
4. Battle!!


I wonder if someone could help me with that.
Thanks in advance!
you only need a script for random battles (tsukihime has one) because for evented battles you can just add a direct call to the common event before you place the battle processing command.
This will call a common event for every battle processing via event
Code:
class Game_Interpreter
  alias cmd_301 command_301
  def command_301
    param_0 = @params[0]
    @params[0] = 10 # <--- Common event ID
    command_117
    @params[0] = param_0
    cmd_301
  end
end
Yeah! I know about Tsukihime 's script alredy (Sorry for not mentioning that in the first post). But I'ma actually looking for a script thant makes what Tsukihime 's script do but in every battle. What I do not want is be forced to add a direct call to the common event every time that I add a battle in the game.
In other words I want a way to automatize that.
This will call a common event for every battle processing via event
Code:
class Game_Interpreter
  alias cmd_301 command_301
  def command_301
    param_0 = @params[0]
    @params[0] = 10 # <--- Common event ID
    command_117
    @params[0] = param_0
    cmd_301
  end
end

Thank you @TheoAllen ! It is just what I was looking for! I will used for sure 🙂

(Sorry for double posting)
No prob. I use a lot of little snippet myself for QoL purpose in developing 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ace-pre-battle-common-event-solved.90124/