I am modifying Fox's freeform shutter script and adding some new functionality.
https://www.purezc.n...e=scripts&id=61
One of the big ones is that if you fall into a Pitfall or Water combo, you'll respawn inside the shutter. I want to use mapdata->EntryX and mapdata->EntryY to set these inside the script to avoid this.
This is the snippet I added to the code at the appropriate time....
int map = Game->GetCurMap(); int screen = Game->GetCurScreen(); mapdata richard = Game->LoadMapData(map,screen); Trace(richard->EntryX); Trace(richard->EntryY); richard->EntryX = Link->X; richard->EntryY = Link->Y; Trace(richard->EntryX); Trace(richard->EntryY);
And once Link is outside of the shutter, this gets printed via Trace(); (these are two different entries to the room).
http://puu.sh/GMa3C/b655016c2e.png
However, if I fall into a pit, Link still respawns inside the shutter, not at the coordinates printed via the script.
Am I doing it wrong? I can provide greater code context if needed.