TR_m3_NPC_Llevari_Uvelar
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
NoLore
following
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m3_NPC_Llevari_Uvelar
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short following
8short T_Local_NPC
9short T_Local_NoLore
10short OnPCHitMe
11
12if ( CellChanged )
13 if ( GetJournalIndex "TR_m3_TT_StSeryn_2" == 100 )
14 if ( GetDeadCount "TR_m3_Llevari_Uvelar" == 0 )
15 PositionCell 4361 5130 12165 8100 "Monastery of St. Seryn, Infirmary"
16 AiWander 64 50 40 10 0 0 0 0 0
17 endif
18 endif
19 if ( GetJournalIndex "TR_m3_TT_StSeryn_2" >= 10 )
20 if ( GetDisabled )
21 enable
22 endif
23 elseif ( GetDisabled == 0 )
24 disable
25 endif
26endif
27
28if ( OnPCHitMe )
29 if ( GetJournalIndex "TR_m3_TT_StSeryn_2" == 10 )
30 if ( GetJournalIndex "TR_m3_TT_StSeryn_2b" < 100 )
31 set controlQ to 0
32 Journal "TR_m3_TT_StSeryn_2b" 100
33 SetMagicka 0 ;helps make her flee less
34 endif
35 endif
36 startcombat player
37 set OnPCHitMe to 0
38endif
39
40if ( GetJournalIndex "TR_m3_TT_StSeryn_2" >= 10 )
41 if ( GetJournalIndex "TR_m3_TT_StSeryn_2" < 40 )
42 if ( GetPCCell "Monastery of St. Seryn, Infirmary" == 1 )
43 Journal "TR_m3_TT_StSeryn_2" 40
44 AiWander 64 50 40 10 0 0 0 0 0
45 endif
46 endif
47endif
48
49if ( TR_Map )
50 return
51endif
52
53set TR_Map to 3
54
55End