TR_m4_MG_Adric2_Sc
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
NoLore
control
controlQ
T_Local_NPC
Source
1Begin TR_m4_MG_Adric2_Sc
2
3short TR_Map
4short NoLore
5short control
6short controlQ
7short T_Local_NPC
8
9if ( TR_Map == 0 )
10 set TR_Map to 4
11endif
12
13if ( OnDeath == 1 )
14 set control to 1
15endif
16
17if ( CellChanged == 1 )
18 if ( GetDeadCount "TR_m4_q_Adric Jerenise" >= 1 )
19 set control to 1
20 endif
21endif
22
23if ( control == 1 )
24 return
25endif
26
27if ( GetDisabled )
28 if ( GetJournalIndex TR_m4_MG_Ando_7 >= 120 )
29 Enable
30 "TR_m4_q_Adric Jerenise"->Disable
31 elseif ( GetJournalIndex TR_m4_MG_Ando_7 == 0 )
32 if ( GetJournalIndex TR_m4_MG_Ando_8 >= 100 )
33 Enable
34 "TR_m4_q_Adric Jerenise"->Disable
35 endif
36 endif
37else
38 if ( GetJournalIndex TR_m4_MG_Ando_7 < 120 )
39 if ( GetJournalIndex TR_m4_MG_Ando_7 != 0 )
40 Disable
41 endif
42 if ( GetJournalIndex TR_m4_MG_Ando_8 < 100 )
43 Disable
44 endif
45 endif
46endif
47
48if ( controlQ == 0 )
49 if ( GetJournalIndex TR_m4_MG_Ando_8 >= 100 )
50 if ( CellChanged == 1 )
51 TR_m4_Ethalvora->Disable
52 PositionCell 8352 4264 15185 20100 "Bal Foyen, Guild of Mages" ;marker TR_m4_MARK_Adric2
53 AIWander 0 0 0 60 30 10 0 0 0 0 0 0
54 set controlQ to 1
55 endif
56 endif
57endif
58
59End