TR_m4_NPC_Soron_Nadril
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
doOnce
aliveCheck
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Soron_Nadril
2
3; Disables NPC before starting quest and controls action on death
4
5short TR_Map
6short control ; controls whether you have talked to certain topics
7short controlQ
8short doOnce
9short aliveCheck
10short NoLore
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( OnDeath )
15 Set TR_m4_AndoHH_CTRating1 to ( TR_m4_AndoHH_CTRating1 + 2 ) ; reduces standing with CT
16 if ( GetJournalIndex "TR_m4_HH_AND_Greef" < 100 )
17 if ( GetDeadCount "TR_m4_Sarus Savrethi" == 0 )
18 Set aliveCheck to 1
19 elseif ( GetDeadCount "TR_m4_Milune Savrethi" == 0 )
20 Set aliveCheck to 1
21 endif
22 if ( aliveCheck == 1 )
23 Journal "TR_m4_HH_AND_Greef" 90
24 if ( TR_m4_AndoHH_GreefDay == 0 )
25 Set TR_m4_AndoHH_GreefHour to ( GameHour + 12 )
26 if ( TR_m4_AndoHH_GreefHour >= 24 )
27 Set TR_m4_AndoHH_GreefHour to ( TR_m4_AndoHH_GreefHour - 24 )
28 Set TR_m4_AndoHH_GreefDay to ( DaysPassed + 1 )
29 else
30 Set TR_m4_AndoHH_GreefDay to DaysPassed
31 endif
32 endif
33 endif
34 endif
35endif
36
37if ( GetDisabled == 0 )
38 if ( GetJournalIndex "TR_m4_HH_AND_Greef" < 10 )
39 Disable
40 elseif ( GetJournalIndex "TR_m4_HH_AND_Greef" < 70 )
41 if ( TR_m4_HH_SavrethiAlive == 0 ) ; disable if they are dead at start of quest
42 Disable
43 endif
44 endif
45 return
46elseif ( GetJournalIndex "TR_m4_HH_AND_Greef" >= 10 )
47 if ( doOnce == 0 )
48 Set doOnce to 1
49 if ( TR_m4_HH_SavrethiAlive > 0 ) ; only enable if at least one of them is alive
50 Enable
51 endif
52 endif
53endif
54
55if ( TR_Map != 4 )
56 set TR_Map to 4
57endif
58
59End