Versuch es lieber einmal hiermit.
Code:
x = $game_variables[2]
y = $game_variables[3]
a = $game_variables
b = $game_map
a[4] = b.terrain_tag(x, y)