Scripts

TR_m1_q_MorvinGirith_Script

TR_Mainland.esm
Variables 6
Local Variables
sayOnce
doonce
TR_map
T_Local_NPC
NoLore
control
Source
1Begin TR_m1_q_MorvinGirith_Script 2 3short sayOnce 4short doonce 5short TR_map 6short T_Local_NPC 7short NoLore 8short control 9 10if ( TR_map != 1 ) 11 Set TR_map to 1 12endif 13 14If ( GetJournalIndex TR_m1_TT_4 >= 15 ) 15 If ( GetDisabled ) 16 If ( GetJournalIndex TR_m1_TT_4 < 50 ) 17 enable 18 Endif 19 Endif 20ElseIf ( GetDisabled == 0 ) 21 disable 22Else 23 return 24Endif 25 26If ( sayOnce == 0 ) 27 If ( GetDistance Player <= 1500 ) 28 If ( GetJournalIndex TR_m1_TT_4 >= 15 ) 29 set sayOnce to 1 30 startcombat player 31 setfight 100 32 Endif 33 Endif 34Endif 35 36If ( ondeath == 1 ) 37 journal TR_m1_TT_4 20 38endif 39 40End