TR_m4_NPC_Kettigrim2
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
disableOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Kettigrim2
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. This version is for "NoLore" NPCs.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short disableOnce
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( MenuMode )
15 return
16endif
17
18if ( disableOnce == 0 )
19 Disable
20 set disableOnce to 1
21endif
22
23if ( GetJournalIndex "TR_m4_Arv_VendelVisitD" == 10 )
24 if ( GetDisabled )
25 if ( GetDeadCount "TR_m4_S_Kettigrim" == 0 )
26 Enable
27 endif
28 endif
29endif
30
31if ( "TR_m4_Vendel Othreleth2"->GetAttacked )
32 StartCombat player
33endif
34
35if ( CellChanged )
36 if ( GetJournalIndex "TR_m4_Arv_VendelVisitD" >= 20 )
37 if ( GetDisabled == 0 )
38 Disable
39 endif
40 endif
41endif
42
43if ( TR_Map == 4 )
44 return
45endif
46
47set TR_Map to 4
48
49End