TR_m3_NPC_Staunch-Roots_Clerk
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m3_NPC_Staunch-Roots_Clerk
2; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
4; appropriate to the location the NPC is.
5
6short TR_Map
7short control
8short controlQ
9short T_Local_NPC
10short NoLore
11
12; Enables if the quest stage hits 75
13
14if ( CellChanged == 1 )
15 if ( GetJournalIndex TR_m3_Nnv_SlaveRising < 75 )
16 Disable
17 elseif ( GetJournalIndex TR_m3_Nnv_SlaveRising == 75 )
18 Enable
19 endif
20endif
21
22; Updates journal if killed during the quest "Slave Rising"
23
24if ( OnDeath == 1 )
25 if ( GetJournalIndex TR_m3_Nnv_SlaveRising >= 10 )
26 if ( GetJournalIndex TR_m3_Nnv_SlaveRising < 100 )
27 Journal "TR_m3_Nnv_SlaveRising" 120
28 endif
29 endif
30endif
31
32if ( TR_Map )
33 return
34endif
35
36set TR_Map to 3
37
38End