TR_m3_NPC_Endros_Dilmyn
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
doonce
Source
1Begin TR_m3_NPC_Endros_Dilmyn
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short doonce
9;global TR_m7_HH_ElarFramed ;is 1 if the player has planted the dagger on the body
10
11if ( GetJournalIndex "TR_m7_HH_Sathis6" >= 10 )
12 if ( GetJournalIndex "TR_m7_HH_Sathis6" < 50 )
13 if ( OnDeath == 1 )
14 Journal "TR_m7_HH_Sathis6" 50
15 endif
16 endif
17 if ( TR_m7_HH_ElarFramed == 1 )
18 Journal "TR_m7_HH_Sathis6" 55 ;updates journal if player has the quest and has planted the dagger
19 endif
20endif
21
22if ( GetHealth < 1 )
23 if ( GetItemCount "TR_m7_HH_EnarDagger" >= 1 )
24 set TR_m7_HH_ElarFramed to 1
25 elseif ( GetItemCount "TR_m7_HH_EnarDagger" == 0 )
26 set TR_m7_HH_ElarFramed to 0
27 endif
28endif
29
30
31if ( TR_Map == 3 )
32 return
33endif
34
35set TR_Map to 3
36
37End