Scripts

TR_m7_NPC_Mednil_Thervoth

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
TimePassed
Source
1Begin TR_m7_NPC_Mednil_Thervoth 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short NoLore 8short T_Local_NoLore 9float TimePassed 10 11if ( MenuMode ) 12 return 13endif 14 15if ( GetJournalIndex TR_m7_HR_AldIuval_q2 == 20 ) 16 if ( control != 2 ) 17 set control to 2 18 SetFight 100 19 StartCombat player 20 endif 21endif 22 23if ( control == 0 ) 24 if ( GetJournalIndex TR_m7_HR_AldIuval_q2 == 10 ) 25 if ( GetDistance player <= 250 ) 26 ForceGreeting 27 return 28 endif 29 endif 30elseif ( control == 1 ) 31 set TimePassed to ( TimePassed + GetSecondsPassed ) 32 if ( TimePassed > 10 ) 33 set control to 2 34 SetFight 100 35 StartCombat player 36 endif 37endif 38 39if ( TR_Map == 7 ) 40 return 41endif 42 43set TR_Map to 7 44 45End