[ACE] Call a script function from another script ?

I'd like to call the shake_screen function from this script into another script's code (Falcao Pearl ABS Liquid's script, more precisely)

I've found the line where I have to replace the basic screen shake function from the game with the one from TheoAllen's script, but how can I do that exactly ?
You just use these lines:
Code:
    $game_temp.shake_maxdur = duration
    $game_temp.shake_dur = duration
    $game_temp.shake_power = power
Replace the duration and power with proper values, of course.
I appreciate your help, but what should I write exactly ?

Can I write the lines you gave me and then call the "shake_screen" function ? Because I have tried this and I got an error ...
You should write that exactly, all 3 lines.
The duration must be replaced by the duration of the effect, both of them must be the same value.
And the power is the strength of the effect, numeric, integer value too.

You wrote that you found the line that you need to replace. Share that line here, or even better, the whole method that contains the line.

But saying "I got an error" is not helpful at all without the actual error message. What did that message say?
Nevermind, found a fix myself.

Just wrote this at the end of the script :
Ruby:
#==============================================================================
# ** Game_Screen
#------------------------------------------------------------------------------
#  This class handles screen maintenance data, such as changes in color tone,
# flashes, etc. It's used within the Game_Map and Game_Troop classes.
#==============================================================================
class Game_Screen
  #--------------------------------------------------------------------------
  # * Start Shaking
  #     power: intensity
  #     speed: speed
  #--------------------------------------------------------------------------
  def start_shake(power, speed, duration)
    $game_temp.shake_maxdur = duration
    $game_temp.shake_dur = duration
    $game_temp.shake_power = power
  end
end

So that actually changes the base game screen shake function.

Thanks for your help tho, I appreciate it !

Original thread: https://forums.rpgmakerweb.com/threads/ace-call-a-script-function-from-another-script.128378/