Scripts

TR_m4_HH_Ulvo_IndGuardSc

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m4_HH_Ulvo_IndGuardSc 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short NoLore 8short T_Local_NoLore 9 10if ( OnDeath ) 11 if ( GetJournalIndex "TR_m4_HH_Ulvo4" < 100 ) 12 journal "TR_m4_HH_Ulvo4" 85 13 endif 14 "TR_m4_HH_Tenara_Sarem"->setfight 90 15 "TR_m4_HH_Ulvo_IndGuard"->setfight 90 16 return 17endif 18 19if ( GetJournalIndex "TR_m4_HH_Ulvo4" < 10 ) 20 ; disable before the quest 21 if ( GetDisabled == 0 ) 22 disable 23 endif 24 return 25elseif ( GetJournalIndex "TR_m4_HH_Ulvo4" >= 110 ) 26 ; bad ending -- they don't leave 27 return 28elseif ( GetJournalIndex "TR_m4_HH_Ulvo4" >= 100 ) 29 ; disable after the quest 30 if ( GetDisabled ) 31 return 32 else 33 disable 34 return 35 endif 36elseif ( GetJournalIndex "TR_m4_HH_Ulvo4" >= 85 ) 37 ; they don't leave if you killed one of them 38 return 39elseif ( GetJournalIndex "TR_m4_HH_Ulvo4" >= 70 ) 40 ; leave on cell change after you told them about the velk 41 if ( CellChanged ) 42 if ( GetDisabled == 0 ) 43 disable 44 endif 45 endif 46 return 47elseif ( GetDisabled ) 48 ; enable during the quest 49 enable 50 return 51endif 52 53if ( TR_Map == 4 ) 54 return 55endif 56 57set TR_Map to 4 58 59end