Spoiler
begin _Brenith_travelshort statusif ( MenuMode == 1 ) returnendifif ( GetPCCell "Gnisis" == 0 ) returnendifif ( status == 0 ) ; Letter's got, go to the barracks doorMessageBox "Brenith:status 2, goto the door" set status to 2 AITravel -256 -123 -41endifif ( status == 2 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 3, door reached" set status to 3 PlaySound "Wooden Door Close 1" PositionCell -82687 91821 1088 274 "Gnisis" ; outside the door return endif if ( CellChanged == 1 ) ; in case player reaches the door and leaves sooner than herMessageBox "Brenith:status 3, door reached" set status to 3 PositionCell -82687 91821 1088 274 "Gnisis" return endifendifif ( GetInterior == 1 ) returnendifif ( status == 3 ) MessageBox "Brenith:status 4, goto mines" set status to 4 AITravel -86916 95074 1083 ;waypoint beyond Tansumiran returnendifif ( status == 4 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 5, Tansumiran reached, goto Almu" set status to 5 AITravel -86436 96932 1686 return endifendifif ( status == 5 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 6, Almu reached, goto mines" set status to 6 AITravel -80987 93307 2307 return endifendifif ( status == 6 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 7, mines reached" set status to 7 endifendifif ( status == 7 ) ; Quest moved, go back to barracks if ( GetJournalIndex ALM_Brenith_miners >= 30 ) set status to 8MessageBox "Brenith:status 8, go to Tansumiran" AITravel -86916 95074 1083 return endifendifif ( status == 8 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 9, halfway back" set status to 9 AITravel -82687 91821 1088 return endif if ( CellChanged == 1 ) ;if player walks somewhere else during her walk, transfer straight to barracksMessageBox "Brenith:status 9, barracks" set status to 10 endifendifif ( status == 9 ) if ( GetAIPackageDone == 1 )MessageBox "Brenith:status 9, barracks" set status to 10 PositionCell 741, 689, -356, 132, "Gnisis, Barracks" return endif if ( CellChanged == 1 )MessageBox "Brenith:status 9, barracks" set status to 10 endifendifif ( status == 10 ) set status to 11 PositionCell 741, 689, -356, 132, "Gnisis, Barracks" AIWander, 128, 0, 0, 60, 30, 10, 0, 0, 0, 0, 0, 0 StopScript "_Brenith_travel" returnendifend
She's supposed to display messagebox #6 near Almu, then walk towards mines, then display messagebox #7 and wait until the quest turns her back to barracks. In reality, after reaching Almu, messageboxes #6 and #7 are displayed immediately one after another and she stops there. What am I doing wrong?
UPD: I divided the last segment with two more waypoints - before and after the bridge between the "pavilion" beyond Almu and the mines. Yet before reaching the bridge she stops and throws three remaining messageboxes up to the former #7 (I didn't edit the script in the post after update). Is there something wrong with pathgrids in "upper Gnisis" preventing her from correct walking, or my script can be made to work by itself?