TR_m7_EEC_CaravanGuar
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m7_EEC_CaravanGuar
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9if ( GetCommonDisease == 0 )
10 if ( control == 0 )
11 AddSpell "TR_m7_EEC_Guarfever"
12 set control to 1
13 endif
14endif
15
16if ( GetJournalIndex "TR_m7_EEC_Narsis4" < 10 )
17 ; disable before the quest
18 if ( GetDisabled == 0 )
19 disable
20 endif
21 return
22
23elseif ( GetJournalIndex "TR_m7_EEC_Narsis4" >= 100 )
24 ; disable after the quest
25 if ( GetDisabled )
26 return
27 else
28 disable
29 return
30 endif
31
32elseif ( GetDisabled )
33 ; enable during the quest
34 enable
35 return
36endif
37
38if ( GetCommonDisease == 1 )
39 set "TR_m7_EEC_SickGuar" to 0
40elseif ( GetCommonDisease == 0 )
41 set "TR_m7_EEC_SickGuar" to 1
42endif
43
44set TR_Map to 7
45
46End