Scripts

viatrix_petilia

Morrowind.esm
Variables 4
Local Variables
gotthere
nolore
timer
annoyed
Source
1Begin viatrix_petilia 2 3 float timer 4 float annoyed 5 short gotthere 6 short nolore 7 8 if ( gotthere == -1 ) 9 return 10 endif 11 12 if ( GetCurrentAiPackage != 3 ) 13 return 14 endif 15 16 set timer to timer + GetSecondsPassed 17 18 if ( timer > 720 ) ;12 minutes 19 set timer to 0 20 set annoyed to 1 21 if ( GetDistance Player < 512 ) 22 if ( GetJournalIndex "MV_RichPilgrim" == 20 ) 23 ForceGreeting 24 Journal "MV_RichPilgrim" 40 25 set annoyed to 0 26 return 27 elseif ( GetJournalIndex "MV_RichPilgrim" == 40 ) 28 ForceGreeting 29 Journal "MV_RichPilgrim" 50 30 set annoyed to 0 31 return 32 elseif ( GetJournalIndex "MV_RichPilgrim" == 50 ) 33 ForceGreeting 34 Journal "MV_RichPilgrim" 60 35 set annoyed to 0 36 return 37 elseif ( GetJournalIndex "MV_RichPilgrim" == 60 ) 38 ForceGreeting 39 Journal "MV_RichPilgrim" 120 40 set annoyed to 0 41 return 42 endif 43 endif 44 endif 45 46 if ( GetDistance "Furn_shrine_Vivec_cure_03" <= 512 ) 47 Journal "MV_RichPilgrim" 95 48 set gotthere to -1 49 ForceGreeting 50 StopScript viatrix_petilia 51 endif 52 53 if ( OnDeath == 1 ) 54 Journal "MV_RichPilgrim" 130 55 endif 56 57End