TR_m7_HH_Alvynu2_SaRavi_scr
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlq
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
NoLore
Source
1begin TR_m7_HH_Alvynu2_SaRavi_scr
2
3;This script makes the clerks nolore and lowers their disposition when Q2 of the narsis HH questline starts
4;disposition is *not* increased afterwards
5
6short TR_Map
7short control
8; 0 = not initialized
9; 1 = initialized
10; 2 = quest started
11; 3 = quest ended
12; control is being used instead of controlq
13; because saravi already uses controlq and
14; I wanted to keep it consistent between the scripts
15short controlq
16short T_Local_NPC
17short T_Local_NoLore
18short T_Local_Khajiit
19short NoLore
20
21if ( OnDeath == 1 )
22 if ( GetJournalIndex TR_m7_HH_Alvynu_2 < 100 )
23 set TR_m7_HH_Alvynu2_Murder to 1
24 endif
25endif
26
27if ( control > 1 )
28 return
29endif
30
31if ( control == 0 )
32 set TR_Map to 7
33 set T_Local_NoLore to 1
34 set T_Local_Khajiit to 1
35 set control to 1
36endif
37
38if ( control == 1 )
39 if ( GetJournalIndex TR_m7_HH_Alvynu_2 > 0 )
40 moddisposition -35
41 set T_Local_NoLore to 0
42 set control to 2
43 endif
44endif
45
46end