Scripts

freleneAcquesScript

Morrowind.esm
Variables 5
Local Variables
noLore
followNow
distanceCheck
doorLocked
timer
Source
1Begin freleneAcquesScript 2 3short noLore 4short followNow 5short distanceCheck 6float timer 7 8;in dialogue to tell if the door to her cell is locked or not. 0 = locked, 1 = unlocked. 9short doorLocked 10 11if ( MenuMode == 1 ) 12 Return 13endif 14 15if ( GetHealth <= 0 ) 16 return 17endif 18 19if ( GetJournalIndex HR_Stronghold >= 144 ) 20 Return 21endif 22 23if ( GetJournalIndex HR_Stronghold < 141 ) 24 Return 25endif 26 27if ( GetCurrentAiPackage == 3 ) 28;if follow is the current package, set followNow and continue... 29 30 set followNow to 1 31 SetHello 0 32 33 if ( GetTarget "ordinator wander_hp" == 1 ) 34 StopCombat 35 endif 36 37 if ( GetPCCell "Vivec, Hlaalu Prison Cells" == 0 ) 38 ;if follow is done, NPC has arrived... 39 Journal HR_Stronghold 144 40 set followNow to 0 41 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 42 ForceGreeting 43 SetHello 30 44 endif 45 46 if ( timer < 3 ) 47 set timer to ( timer + GetSecondsPassed ) 48 return 49 endif 50 51 if ( GetDistance Player < NPCVoiceDistance ) 52 if ( GetDistance Player < 500 ) 53 set distanceCheck to 0 54 endif 55 set timer to 0 56 return 57 endif 58 59 if ( distanceCheck == 0 ) 60 Say "Vo\B\F\Flw_BF004.mp3" "Hey! Wait for me!" 61 set distanceCheck to 1 62 endif 63 64else 65 ;if follow is NOT the current package, make sure followNow is zero 66 set followNow to 0 67endif 68 69End