I did c.
//Before
function NorthernExit(layer, map)
{
var Name = GetInputPerson();
var PX = GetPersonX(Name);
var PY = GetPersonY(Name);
var NewPY;
NewPY = (176 - PY) - 8;
LastMap = GetCurrentMap(); //used for Dbug
RingCheck(); //Check to see if blue or red ring
if (map) ChangeMap(map);
if (layer >= 0) SetPersonLayer(Name, layer);
Foo(Name, PX, NewPY) //Foo(name, x, y, dir, layer)
FadeOut(200); // My temp solution for the room transitions
SetRenderScript("SlidingMap()");
}
//After
function NorthernExit(layer, map)
{
var Name = GetInputPerson();
var p_coords = [GetPersonX(Name), GetPersonY()];
p_coords[0] = 264 - p_coords[0];
sliding_coords = [w, 0];
LastMap = GetCurrentMap();
RingCheck();
frozen_player_info = GrabImage(0, h, w, s_h-h);
ChangeMap(map);
Foo(Name, p_coords[0], p_coords[1], GetPersonDirection(Name), layer);
SetRenderScript(SlidingMap);
}