Scripts

tr_m7_oth_hh_5_AldGuard_sc

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoLore
Source
1Begin tr_m7_oth_hh_5_AldGuard_sc 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short T_Local_NoLore 8short NoLore 9 10if ( GetJournalIndex "TR_m7_oth_hh_5" < 10 ) 11 if ( GetDisabled ) 12 return 13 else 14 Disable 15 endif 16elseif ( GetJournalIndex "TR_m7_oth_hh_5" >= 50 ) 17 if ( CellChanged ) 18 if ( GetDisabled ) 19 return 20 ; to preven the corpse from disappearing 21 elseif ( GetHealth > 0 ) 22 Disable 23 endif 24 endif 25elseif ( GetDisabled ) 26 Enable 27endif 28 29if ( OnDeath ) 30 if ( getjournalindex tr_m7_oth_hh_5 == 40 ) 31 journal tr_m7_oth_hh_5 50 32 else 33 journal tr_m7_oth_hh_5 80 34 endif 35endif 36 37if ( getjournalindex tr_m7_oth_hh_5 == 40 ) 38 if ( GetHealthGetRatio < 0.25 ) 39 ForceGreeting 40 endif 41endif 42 43if ( TR_Map ) 44 return 45endif 46 47set TR_Map to 7 48 49End