TR_m0_NPC_Felsa_Ildram
TR_Mainland.esm
Variables
6
Local Variables
T_Local_NPC
T_Local_NoLore
TR_Map
NoLore
control
controlQ
Source
1Begin TR_m0_NPC_Felsa_Ildram
2
3short T_Local_NPC
4short T_Local_NoLore
5short TR_Map
6short NoLore
7short control
8short controlQ
9
10if ( MenuMode )
11 Return
12endif
13
14if ( OnDeath ) ; spawn letter for murderhobo players
15 set control to 1
16 if ( GetJournalIndex TR_m0_HH_TholerAndas == 0 )
17 AddItem TR_m0_q_AndasLetter 1
18 endif
19endif
20
21if ( controlQ == 0 )
22 if ( GetDistance Player <= 256 )
23 set controlQ to 1
24 forcegreeting
25 return
26 endif
27endif
28
29if ( GetJournalIndex TR_m0_HH_TholerAndas > 0 ) ; disable on cell change after quest has started
30 if ( control == 0 ) ; do not disable if dead
31 if ( CellChanged )
32 if ( GetDisabled == 0 )
33 Disable
34 endif
35 endif
36 endif
37endif
38
39if ( TR_Map )
40 return
41endIf
42
43set TR_Map to 0
44
45End