Scripts

TR_m7_NPC_Nilus_Indarys

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doOnce
Source
1Begin TR_m7_NPC_Nilus_Indarys 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short NoLore 8short doOnce 9 10if ( OnDeath ) 11 if ( GetJournalIndex TR_m7_HR_WM_Ep_a != 100 ) 12 set TR_m7_HR_WM_NilusDead to 1 13 endif 14endif 15 16if ( TR_m7_HR_WM_NilusDead ) 17 return 18endif 19 20if ( GetJournalIndex TR_m7_HR_AldIuval_q4 >= 10 ) 21 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 <= 20 ) 22 if ( GetJournalIndex TR_m7_HR_AldIuval_q4_b == 0 ) 23 set control to 0 24 endif 25 endif 26endif 27 28if ( control == 0 ) 29 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 >= 10 ) 30 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 <= 20 ) 31 if ( GetJournalIndex TR_m7_HR_AldIuval_q4_b == 0 ) 32 if ( GetDistance player <= 400 ) 33 ForceGreeting 34 return 35 endif 36 endif 37 endif 38 elseif ( GetJournalIndex TR_m7_HR_AldIuval_q1 >= 10 ) 39 if ( GetJournalIndex TR_m7_HR_AldIuval_q1 <= 20 ) 40 if ( GetJournalIndex TR_m7_HR_AldIuval_q1_a == 0 ) 41 if ( GetDistance player <= 400 ) 42 ForceGreeting 43 return 44 endif 45 endif 46 endif 47 endif 48endif 49 50if ( TR_Map == 7 ) 51 return 52endif 53 54set TR_Map to 7 55 56End