Scripts

TR_m4_q_TMM_bolsscript

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
State
T_Local_NPC
Source
1begin TR_m4_q_TMM_bolsscript 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short State 8short T_Local_NPC 9 10if ( getstrength >= 40 ) 11 set ControlQ to 1 12endif 13 14if ( getstrength < 40 ) 15 set ControlQ to 0 16endif 17 18if ( GetDisabled ) 19 return 20endif 21 22if ( geteffect sEffectCureCommonDisease == 1 ) 23 if ( getjournalindex TR_m4_And_TMM < 15 ) 24 if ( getjournalindex TR_m4_And_TMM > 0 ) 25 if ( Control == 0 ) 26 journal TR_m4_And_TMM 15 27 endif 28 else 29 set Control to 1 30 endif 31 endif 32 set State to 1 33endif 34 35 36if ( OnDeath ) 37 if ( GetJournalIndex TR_m4_And_TMM > 0 ) 38 Journal TR_m4_And_TMM 45 39 set TR_m4_q_TMM_bolsleave to 2 40 elseif ( GetJournalIndex TR_m4_And_TMM_Ash > 0 ) 41 Journal TR_m4_And_TMM 45 42 set TR_m4_q_TMM_bolsleave to 2 43 endif 44endif 45 46 47if ( TR_Map == 4 ) 48 return 49endif 50 51set TR_Map to 4 52 53end