TR_m3_q_A9_IdrosoMenas
TR_Mainland.esm
Variables
4
Local Variables
annoyancecounter
T_Local_NPC
TR_Map
NoLore
Source
1Begin TR_m3_q_A9_IdrosoMenas
2
3short annoyancecounter
4short T_Local_NPC
5short TR_Map
6short NoLore
7
8if ( TR_Map != 3 )
9 set TR_Map to 3
10endif
11
12if ( OnDeath == 1 )
13 if ( getjournalindex TR_m3_Sa_Inquiry == 0 )
14 if ( getdeadcount TR_m3_Girynu_Rathryon == 0 )
15 ; if the player kills Idroso before even starting the quest, make the quest unstartable
16 TR_m3_Girynu_Rathryon->disable
17 TR_m3_q_A9_Daedroth->disable
18 endif
19 else
20 ; if the player kills Idroso during the quest, start the
21 ; "Idroso killed" path of the decision tree
22 Journal, TR_m3_Sa_Inquiry 15
23 endif
24; TR_m3_Girynu_Rathryon->AIWander, 512, 5, 0, 0, 20, 0, 10, 30, 0, 0, 0
25; Journal, TR_m3_Sa_Inquiry 72
26; StartScript TR_m3_q_A9_WitchhunterDisappear
27endif
28
29if ( GetJournalIndex "TR_m3_Sa_Inquiry" >= 10 )
30 if ( GetJournalIndex "TR_m3_Sa_Idroso" < 10 )
31 if ( annoyancecounter >= 4 )
32 Journal "TR_m3_Sa_Idroso" 10
33 endif
34 endif
35 if ( GetJournalIndex "TR_m3_Sa_Inquiry" > 50 )
36 return
37 endif
38 if ( CellChanged ) ; failsafe in case the player has killed the daedroth
39 if ( getDeadCount TR_m3_q_A9_Daedroth >= 1 )
40 TR_m3_q_A9_Daedroth->Resurrect
41 endif
42 endif
43endif
44
45
46end