TR_m3_NPC_LlararNirith_Sc
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
sleeperOn
Source
1Begin TR_m3_NPC_LlararNirith_Sc
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9short sleeperOn
10
11if ( TR_Map == 0 )
12 set TR_Map to 3
13endif
14
15if ( GetJournalIndex TT_SanctusShrine >= 20 )
16 if ( GetJournalIndex TT_SanctusShrine < 50 )
17 Return
18 endif
19endif
20
21if ( GetJournalIndex A1_2_AntabolisInformant < 10 )
22 Set sleeperOn to 0
23 Return
24 ;sleepers don't forceGreeting you before this event
25endif
26
27if ( GetJournalIndex C3_DestroyDagoth >= 50 )
28 Set sleeperOn to 0
29 Return
30 ;no more sleepers after endgame
31endif
32
33Set sleeperOn to 1
34
35if ( GameHour > 6 )
36 if ( GameHour < 18 )
37 Set sleeperOn to 0
38 ;1 unless sun is up... estimate, adjust
39 ;not sleepers anymore after endgame
40 Return
41 endif
42endif
43
44if ( GetDistance Player > 3000 )
45 set control to 0
46 Return
47endif
48
49if ( control != 0 )
50 Return
51endif
52
53if ( GetDistance Player < 150 )
54 ForceGreeting
55 set control to 1
56endif
57
58End