Scripts

galbedirScript

Morrowind.esm
Variables 2
Local Variables
doOnce
timer
Source
1Begin galbedirScript 2 3short doOnce 4float timer 5 6if ( doOnce == 5 ) 7 Return 8endif 9 10if ( doOnce == 0 ) 11 if ( GetJournalIndex MG_Sabotage >= 10 ) 12 AiTravel -26 -660 -750 0 13 Set doOnce to 1 14 endif 15endif 16 17if ( doOnce == 1 ) 18 if ( GetAiPackageDone == 1 ) 19 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 20 Set doOnce to 2 21 endif 22 if ( GetDistance "common_ring_01_mgbwg" < 200 ) 23 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 24 Set doOnce to 2 25 endif 26 if ( CellChanged == 1 ) 27 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 28 Set doOnce to 2 29 endif 30endif 31 32if ( doOnce == 2 ) 33 Set timer to ( timer + GetSecondsPassed ) 34 if ( timer > 30 ) 35 Set doOnce to 3 36 endif 37endif 38 39if ( doOnce == 3 ) 40 AiTravel -545 -75 15 0 41 Set doOnce to 4 42endif 43 44if ( doOnce == 4 ) 45 if ( GetAiPackageDone == 1 ) 46 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 47 Set doOnce to 5 48 endif 49 if ( GetDistance "de_p_desk_01_galbedir" < 64 ) 50 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 51 Set doOnce to 5 52 endif 53 if ( CellChanged == 1 ) 54 AiWander 0 0 0 60 30 20 0 0 0 0 0 0 55 Set doOnce to 5 56 endif 57endif 58 59End