TR_m4_MG_Samay
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
State
State2
NoLore
T_Local_Nolore
T_Local_NPC
timer
Source
1Begin TR_m4_MG_Samay
2
3short TR_Map
4short control
5short controlQ
6short State;in dialogue
7short State2;in dialogue
8short NoLore
9short T_Local_Nolore
10short T_Local_NPC
11float timer
12
13if ( Menumode == 1 )
14 return
15endif
16
17if ( CellChanged == 1 )
18 return
19endif
20
21if ( TR_Map != 4 )
22 set TR_Map to 4
23endif
24
25if ( GetPCCell "Bal Foyen, Imperial Commission: Garrison" == 1 )
26 set T_Local_Nolore to 0
27else
28 set T_Local_Nolore to 1
29endif
30
31if ( OnDeath )
32 if ( GetJournalIndex TR_m4_MG_Ando_2 > 0 )
33 if ( GetJournalIndex TR_m4_MG_Ando_2 < 90 )
34 Journal TR_m4_MG_Ando_2 90
35 endif
36 endif
37 if ( GetJournalIndex TR_m4_MG_Ando_4 >= 10 )
38 if ( GetJournalIndex TR_m4_MG_Ando_4 < 80 )
39 if ( GetJournalIndex TR_m4_MG_Ando_4 == 53 )
40 "TR_m4_q_Sanvyr Ruthan"->stopcombat
41 "TR_m4_q_Vilms Valos"->stopcombat
42 "TR_m4_q_Nadene Drin"->stopcombat
43 endif
44 Journal TR_m4_MG_Ando_4 80
45 endif
46 endif
47endif
48
49if ( control == 0 )
50 if ( GetJournalIndex TR_m4_MG_Ando_4 == 50 )
51 if ( GetInterior == 0 )
52 "TR_m4_q_Sanvyr Ruthan"->enable
53 "TR_m4_q_Vilms Valos"->enable
54 "TR_m4_q_Nadene Drin"->enable
55 set control to 1
56 endif
57 endif
58elseif ( control == 1 )
59 if ( "TR_m4_q_Sanvyr Ruthan"->GetDistance player < 500 )
60 set timer to ( timer + GetSecondsPassed )
61 if ( timer >= 1.5 )
62 "TR_m4_q_Sanvyr Ruthan"->forcegreeting
63 set control to 2
64 set timer to 0
65 endif
66 endif
67endif
68
69if ( controlQ == 0 )
70 if ( GetJournalIndex TR_m4_MG_Ando_4 >= 50 )
71 if ( GetJournalIndex TR_m4_MG_Ando_4 <= 55 )
72 if ( GetPCCell "Bal Foyen, Guild of Mages" == 1 )
73 set timer to ( timer + getsecondspassed )
74 if ( timer >= 3 )
75 Forcegreeting
76 set controlQ to 1
77 set timer to 0
78 endif
79 endif
80 endif
81 endif
82endif
83
84End