TR_m3_NPC_Hlanas_scr
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
PositionInitial
Source
1Begin TR_m3_NPC_Hlanas_scr
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9short PositionInitial
10
11if ( OnDeath )
12 set control to 1
13 if ( PositionInitial )
14 if ( GetJournalIndex TR_m3_AT_MG03 >= 10 )
15 if ( GetJournalIndex TR_m3_AT_MG03 < 80 )
16 Journal TR_m3_AT_MG03 90
17 endif
18 endif
19 endif
20endif
21
22if ( control == 1 )
23 return
24endif
25
26if ( cellchanged )
27 if ( GetJournalIndex TR_m3_AT_MG03 == 10 )
28 if ( PositionInitial == 0 )
29 positionCell -85 -211 -55 10800 "Almas Thirr, Guild of Mages"
30 AiWander 0 0 0
31 set PositionInitial to 1
32 set T_Local_NoLore to 0
33 set "TR_m3_Dalyne Maryon".controlQ to 1
34 endif
35 elseif ( GetJournalIndex TR_m3_AT_MG03 == 100 )
36 if ( PositionInitial )
37 positionCell 201 -305 -830 16200 "Almas Thirr, Guild of Mages"
38 AiWander 0 0 0
39 set PositionInitial to 0
40 set T_Local_NoLore to 1
41 endif
42 elseif ( GetJournalIndex TR_m3_AT_MG03 == 110 )
43 disable
44 endif
45endif
46
47if ( TR_Map )
48 return
49endif
50
51set TR_Map to 3
52set T_Local_NoLore to 1
53
54End