Scripts

devalFollow

Morrowind.esm
Variables 4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1Begin devalFollow 2 3short noLore 4short followNow 5short distanceCheck 6float timer 7;global NPCVoiceDistance 8 9if ( MenuMode == 1 ) 10 Return 11endif 12 13if ( GetJournalIndex HR_KoalCave >= 70 ) 14 Return 15endif 16 17if ( GetJournalIndex HR_KoalCave < 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 ( GetPCCell "Koal Cave" == 1 ) 37 if ( GetPCCell "Koal Cave Entrance" == 0 ) 38 ;since there can be some confusion here... 39 Journal HR_KoalCave 70 40 set followNow to 0 41 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 42 Say "Vo\D\M\Flw_DM003.mp3" "Thank you." 43 SetHello 30 44 endif 45 endif 46 47 if ( GetDistance Player < NPCVoiceDistance ) 48 if ( GetDistance Player < 500 ) 49 set distanceCheck to 0 50 endif 51 set timer to 0 52 return 53 endif 54 55 if ( distanceCheck == 0 ) 56 ;since there is not "wait for me" for Dunmer male... 57 Say "Vo\D\M\Flw_DM001.mp3" "Where are you going?" 58 set distanceCheck to 1 59 endif 60 61else 62 ;if follow is NOT the current package, make sure followNow is zero 63 set followNow to 0 64endif 65 66End