TR_m3_Oth_TT_GuardDisease_sc
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoLore
Count
TR_m3_Oth_TT_Guard
Source
1Begin TR_m3_Oth_TT_GuardDisease_sc
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short T_Local_NoLore
8short NoLore
9short Count
10short TR_m3_Oth_TT_Guard ; used for dialogue filtering
11
12; Iterates global TR_m3_Oth_TT_GuardDiseaseCount when cure disease cast on sick guard in Othrenis TT Q5
13; controlQ is also set to 1 if guard is given potion through dialogue
14
15if ( GetDisabled )
16 return
17endif
18
19if ( CellChanged )
20 if ( TR_m3_Oth_TT_GuardDiseaseCount >= 3 )
21 Disable
22 endif
23endif
24
25if ( GetEffect sEffectCureCommonDisease == 1 )
26 if ( controlQ == 0 )
27 set controlQ to 1
28 endif
29endif
30
31if ( controlQ == 1 )
32 set Count to TR_m3_Oth_TT_GuardDiseaseCount
33 set TR_m3_Oth_TT_GuardDiseaseCount to ( Count + 1 )
34 set controlQ to 2
35endif
36
37if ( TR_Map == 3 )
38 return
39endif
40
41set TR_Map to 3
42set TR_m3_Oth_TT_Guard to 1
43
44End