Scripts

dandsaScript

Morrowind.esm
Variables 4
Local Variables
noLore
followNow
distanceCheck
timer
Source
1Begin dandsaScript 2 3short noLore 4short followNow 5short distanceCheck 6float timer 7 8if ( MenuMode == 1 ) 9 Return 10endif 11 12if ( GetJournalIndex IL_Damsel >= 70 ) 13 Return 14endif 15 16if ( GetJournalIndex IL_Damsel < 50 ) 17 Return 18endif 19 20if ( GetHealth <= 0 ) 21 return 22endif 23 24if ( GetCurrentAiPackage == 3 ) 25;if follow is the current package, set followNow and continue... 26 27 set followNow to 1 28 SetHello 0 29 30 if (GetAIPackageDone == 1) 31 ;if follow is done, NPC has arrived... 32 Journal IL_Damsel 70 33 set followNow to 0 34 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 35 Say "Vo\R\F\Flw_RF003.mp3" "Thank you." 36 ForceGreeting 37 SetHello 30 38 endif 39 40 if ( GetPCCell "Abernanit" == 0 ) 41 ;if she's outside, NPC has also arrived... 42 Journal IL_Damsel 70 43 set followNow to 0 44 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 45 Say "Vo\R\F\Flw_RF003.mp3" "Thank you." 46 ForceGreeting 47 SetHello 30 48 endif 49 50 if ( timer < 3 ) 51 set timer to ( timer + GetSecondsPassed ) 52 return 53 endif 54 55 if ( GetDistance Player < NPCVoiceDistance ) 56 if ( GetDistance Player < 500 ) 57 set distanceCheck to 0 58 endif 59 set timer to 0 60 return 61 endif 62 63 if ( distanceCheck == 0 ) 64 Say "Vo\R\F\Flw_RF004.mp3" "Hey! Wait for me!" 65 set distanceCheck to 1 66 endif 67 68 else 69 ;if follow is NOT the current package, make sure followNow is zero 70 set followNow to 0 71 endif 72 73End