How can I change screen tone via script call?

I'm trying to do this inside the Game_Player's update:

screen.start_tone_change(Tone.new(-55, -55, -55, 0), 3)wait(3) if trueBut I'm getting an error because of the "screen" variable there. I made it so based on this inside the interpreter:

def command_223 screen.start_tone_change(@params[0], @params[1]) wait(@params[1]) if @params[2] endI don't understand the "screen" variable the interpreter is calling the function from. Where is it defined?
It's actually $game_screen.start_tone_change(n,n).  That's why you're getting the error.  Try that instead.
It's $game_map.screen or $game_troop.screen, depending on where you are.
It's $game_map.screen or $game_troop.screen, depending on where you are.
You're right Tsukihime.[SIZE=12.727272033691406px] That worked brilliantly! Thanks 🙂 [/SIZE]
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-screen-tone-via-script-call.18278/