Umm... you're posting this in general section so allow me to ask: are you making openbor mod?
If the answer is yes, then I can answer yes too. There's a way to store last position on world map after random encounter (or any level change interruption).
sorry for the delay friend. Yes, I am making an openbor mod based on the series such of and I would like you to explain to me (if you have a little time) about that method you mentioned, greetings!