Scripts

vedeleaFollow

Morrowind.esm
Variables 4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1Begin vedeleaFollow 2 3short noLore 4short followNow 5short distanceCheck 6float timer 7;global short NPCVoiceDistance 8 9if ( MenuMode == 1 ) 10 Return 11endif 12 13if ( GetJournalIndex HH_Odirniran >= 70 ) 14 Return 15endif 16 17if ( GetJournalIndex HH_Odirniran < 50 ) 18 Return 19endif 20 21if ( GetHealth <= 0 ) 22 return 23endif 24 25if ( GetCurrentAiPackage == 3 ) 26;if follow is the current package, set followNow and continue... 27 28 set followNow to 1 29 SetHello 0 30 31 if ( timer < 2 ) 32 set timer to ( timer + GetSecondsPassed ) 33 return 34 endif 35 36 if ( GetDistance "Remasa Othril" < 512 ) 37 ;since the above method may not actually work... 38 Journal HH_Odirniran 70 39 set followNow to 0 40 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 41 Say "Vo\D\F\Flw_DF003.mp3" "Thank you." 42 SetHello 30 43 endif 44 45 if ( GetDistance Player < NPCVoiceDistance ) 46 if ( GetDistance Player < 500 ) 47 set distanceCheck to 0 48 endif 49 set timer to 0 50 return 51 endif 52 53 if ( distanceCheck == 0 ) 54 Say "Vo\D\F\Flw_DF004.mp3" "Hey! Wait for me!" 55 set distanceCheck to 1 56 endif 57 58else 59 ;if follow is NOT the current package, make sure followNow is zero 60 set followNow to 0 61endif 62 63 64 65 66 67 68 69 70 71 72 73 if (GetDistance "Remasa Othril" <= 256) 74 ;if Talmsa arrives near Remasa Othril, quest is over 75 journal HH_Odirniran 70 76 set followNow to 0 77 AiWander 128 6 0 40 30 20 0 0 0 0 0 0 78 endif 79else 80 ;if follow is NOT the current package, make sure followNow is zero 81 set followNow to 0 82endif 83 84End