TR_m4_NPC_Erethys_Omavel
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
doOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Erethys_Omavel
2
3; Script NPC "TR_m4_erethys omavel" for an unmarked quest
4; in Teyn Lighthouse.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short doOnce
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( MenuMode )
15 return
16endif
17
18if ( GetPCCell "Teyn, Lighthouse: Basement" )
19 if ( GetDistance "player" <= 150 )
20 if ( doOnce == 0 )
21 ForceGreeting
22 set doOnce to 1
23 endif
24 endif
25endif
26
27if ( OnDeath )
28 if ( GetJournalIndex TR_m4_T_Lighthouse > 0 )
29 Journal TR_m4_T_Lighthouse 100
30 endif
31endif
32
33if ( TR_Map == 4 )
34 return
35endif
36
37set TR_Map to 4
38
39End