Scripts

TR_m2_q_A8_7_ararvyFollow

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
NoLore
followNow
distanceCheck
doonce
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m2_q_A8_7_ararvyFollow 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short followNow 8short distanceCheck 9short doonce 10short T_Local_NPC 11short T_Local_NoLore 12;global NPCVoiceDistance 13 14if ( OnDeath == 1 ) 15 if ( GetJournalIndex TR_m2_wil_Hlersis < 99 ) 16 if ( GetJournalIndex TR_m2_wil_Hlersis > 1 ) 17 Journal TR_m2_wil_Hlersis 200 18 return 19 endif 20 endif 21 return 22endif 23 24if ( MenuMode == 1 ) 25 Return 26endif 27 28if ( TR_Map != 2 ) 29 Set TR_Map to 2 30endif 31 32if ( GetPCCell "Hlersis" == 1 ) 33 if ( GetJournalIndex TR_m2_wil_Hlersis > 19 ) 34 if ( GetJournalIndex TR_m2_wil_Hlersis < 99 ) 35 if ( controlQ == 0 ) 36 Set controlQ to 1 37 ForceGreeting 38 endif 39 endif 40 endif 41endif 42 43 44if ( GetPCCell "Hlersis, The Leaking Spore" == 1 ) 45 if ( GetJournalIndex TR_m2_wil_Hlersis > 19 ) 46 if ( GetJournalIndex TR_m2_wil_Hlersis < 99 ) 47 set followNow to 0 48 AiWander 256 0 0 40 20 20 0 0 0 0 0 0 49 Say "Vo\D\M\Flw_DM004.mp3" "Thank you." 50 SetHello 30 51 ForceGreeting 52 endif 53 endif 54endif 55 56 57if ( GetCurrentAiPackage == 3 ) 58 if ( GetPCCell "Hlersis, The Leaking Spore" == 0 ) 59 60 set followNow to 1 61 SetHello 0 62 63 if ( GetDistance, Player < 400 ) 64 set distanceCheck to 1 65 set doonce to 0 66 endif 67 68 if ( distanceCheck == 0 ) 69 if ( doonce == 0 ) 70 Say "Vo\D\M\Flw_DM001.mp3" "Where are you going?" 71 set distanceCheck to 1 72 set doonce to 1 73 endif 74 endif 75 76 if ( GetDistance, Player >= 1500 ) 77 set distanceCheck to 0 78 return 79 endif 80 endif 81 82else 83 set followNow to 0 84endif 85 86end