TR_m4_q_AG_UliTravel_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
doOnce
T_Local_NPC
Source
1Begin TR_m4_q_AG_UliTravel_sc
2
3; For Obainat quest Ancestral Guidance
4; handles Ulibabi's events
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short doOnce
11short T_Local_NPC
12
13if ( control < 1 )
14 set control to 1 ; for filtering greeting
15endif
16
17if ( OnDeath )
18 Journal TR_m4_Ob_ObainatKill 1
19 if ( GetJournalIndex TR_m4_Ob_Ancestral_Guidance > 0 )
20 Journal TR_m4_Ob_Ancestral_Guidance 200
21 endif
22endif
23
24if ( doOnce == 0 )
25 if ( controlQ == 1 )
26 if ( CellChanged == 1 )
27 PositionCell -12330 -170265 1320 7320 "Roth Roryn Region"
28 AIWander 0 0 0 0 0 0 0 0 0 0 0 0
29 set controlQ to 2
30 endif
31 endif
32
33 if ( GetJournalIndex TR_m4_Ob_Ancestral_Guidance >= 40 )
34 if ( CellChanged == 1 )
35 PositionCell 4072 3998 14651 16800 "Obainat Camp, Massur-Dan's Yurt"
36 AIWander 0 0 0 0 0 0 0 0 0 0 0 0
37 set doOnce to 1
38 endif
39 endif
40endif
41
42if ( TR_Map == 4 )
43 return
44endif
45
46set TR_Map to 4
47
48End