TR_m3_NPC_Kunster
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1;Local script on the NPC or creature
2
3Begin TR_m3_NPC_Kunster
4
5short TR_Map
6short control
7short controlQ
8short T_Local_NPC
9short NoLore
10
11if ( GetItemCount TR_m3_Q_Map_Tirill >= 1 )
12 set control to 1
13else
14 set control to 0
15endif
16
17if ( OnDeath )
18 if ( GetjournalIndex "TR_m3_Dar_Simplecartography" > 0 )
19 if ( GetjournalIndex "TR_m3_Dar_Simplecartography" < 40 )
20 if ( GetItemCount "TR_m3_Q_Map_Tirill" >= 1)
21 Journal "TR_m3_Dar_Simplecartography" 31
22 endif
23 endif
24 endif
25endif
26
27if ( CellChanged )
28 if ( GetDisabled == 0 )
29 if ( getDeadCount "TR_m3_Kunster" == 0 )
30 if ( Getjournalindex "TR_m3_Dar_Simplecartography" >= 40 )
31 disable
32 endif
33 endif
34 endif
35endif
36
37if ( TR_Map == 3 )
38 return
39endif
40
41set TR_Map to 3
42
43End