what happens when you exit? does the NPC start back at the door?
No he doesnt, the moment he started moving he turned the Switch"allready moving" ON,
the moment the player entered the house, the paralell event there would execute a codeline and erase itself. The code would be:
If "allready moving" is ON than Control Variable " Helgas Current Action" += 1.
Now when Hero leaves house, the npc will not start over but the npc will allready be at the Marketplace.
But this solves only part of the problem. there are more constellations, sadly i just got my coffee.
Edit:
I doubt i find a Solution, iam back to step one planing the movement from room A to Room B and all cases which prey behind every corner =). Sorry wasnt at home today, just got to it for a few mins. And my head smokes =)
In Bed VarX = 0
going towards checkpont a VarX = 1
Going towards next Room VarX = 2
being in between rooms VarX = 3
When Player arving to next map
case1- Hilda allready at checkpoint b VarX = 5 (We saw here leaving last map or left while she arrived at this map or the time variable did it)
case2- Hilda arriving in a few moments,she was allready seen moving on prior map VarX = 4A
case3- She wasnt seen starting here movement on the home map, so she will arrive on time.VarX = 4B
The 3 cases arrise from the player changing maps.
On Market VarX = 6
going towards checkpoint b VarX = 7
going towards home map VarX = 8
being in between rooms VarX = 9
When Player arving to next map VarX = 11 or 10A or 10B
arriving at Checkpoint a VarX = 11
arriving in Bed VarX = 12, resett to 0
Now with Hildas "Action Plan" i can go and try if there is a Way to achieve this.
I hope there arent arissing more obstacles.
Edit:
If Hilda is on the same Map as Player but out of his Vission, than her Moveroute will not start, unless its given to her by another event or to herself while she was paralell for a second. this brings new problems if your maps are not oldschool smal.
(There are ways to work around that)
But honestly my motivation to find a solution is going down ....