I'm working on a Macro where I want to setup if possible, table of coordinates possibly but not neccesary in seperate file from which I want to read values on demand, sumular to this
Hop | X | Y | Z
------------------------
1, -100, 250, 25
2, -115, 255, 22
3, -125, 265, 23
4, -121, 253, 17
What I am trying to do is set a destination path from point 1 to point 4 or n and have character run the path through those specific coordinates. But in between each nop I wand to do other things, such as agro check, health check, return to previous hop after agro chase e.t.c. So I am wondering if it's possible to have this arranged somehow? Or perhapse another way to do this? The main loop would look something like this.
Sub Main
:mainloop
/call chkHealth
/call chkAgro
/varadd p1 | where p1 keeps track of current Hop
/call getNext_Loc $p1, $x,$y,$z
/call gotoloc $X,$Y
/call mainloop
/return
And I do need Z coordinate also to do check for overlapping path routes. This is for multilayered pathing where you can walk over on the bridge crossing possible match coordinates under it. And if you run off the path this would be the best way to return to closes path point and continue from there. Any sugestions on how to solver this would be greatly appretiated.

