Can't figure out how to update this from RGSS2.

I was using two snippets of code for VX for a board game mini game but they don't appear to work in Ace. Here are the scripts.

Input.update
Graphics.update
if $scene.is_a?(Scene_Map)
$scene.message_window.update
$scene.update_call_debug
end

This was used in a common event.

and 

@game_player.x == @game_map.events[@event_id].x && @game_player.y == @game_map.events[@event_id].y

'

which is used as a conditional branch to make the player change direction during an auto move from a dice roll. 

I'm not really script savy so any help would be appreciated. If needed the demo for the original VX game is at the following link, along with any other necessary info. 

http://www.rpgmakervx.net/index.php?showtopic=11742

Thank's in advance!
It's $game_player and $game_map, not @game_player and @game_map (and was in VX as well)


Instead of $scene, now use SceneManager.scene


moving to RGSSx Script Support, since it's only a little thing
Alright will give this a try, and that's odd because it did work in VX, but thank you.
VX has @game_player and @game_map nowhere in its scripts. When I put that line into a conditional branch in VX, I get a no_method x for nil class error, which is exactly what I'd expect to get. If that did work in VX, you must have had other script mods that made it work.
I did, I ended up figuring it out, thanks I feel slightly less than dumb.
What was the problem?

Original thread: https://forums.rpgmakerweb.com/threads/cant-figure-out-how-to-update-this-from-rgss2.20320/