TR_m4_NPC_Apisphagus_Thryx
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
NoLore
greetOnce
controlA
T_Local_NPC
T_Local_NoLore
disableOnce
Source
1begin TR_m4_NPC_Apisphagus_Thryx
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short greetOnce
8short controlA
9short T_Local_NPC
10short T_Local_NoLore
11short disableOnce
12;global TR_m4_TG_AndoSideQuest
13
14if ( disableOnce == 0 )
15 disable
16 set disableOnce to 1
17endif
18
19if ( GetDisabled == 0 ) ;disables him when Vendicci leaves Ando
20 if ( TR_m4_TG_AndoShei6Global >= 1 )
21 disable
22 set disableOnce to 10
23 endif
24endif
25
26if ( GetDisabled == 1 ) ;enables him when Vendicci arrives in Ando
27 if ( disableOnce == 1 )
28 if ( TR_m4_TG_AndoSideQuest >= 2 )
29 enable
30 AddTopic "guar"
31 set disableOnce to 2
32 endif
33 endif
34endif
35
36if ( GetDisabled == 0 )
37 if ( GetJournalIndex "TR_m4_TG_ThreeEyes2" >= 20 )
38 if ( GetJournalIndex "TR_m4_TG_ThreeEyes2" <= 50 )
39 if ( GetJournalIndex "TR_m4_TG_ThreeEyes2D" < 10 )
40 if ( greetOnce == 0 )
41 if ( GetDistance, player < 655 )
42 ForceGreeting
43 set greetOnce to 1
44 endif
45 endif
46 endif
47 endif
48 endif
49endif
50
51if ( TR_Map == 4 )
52 return
53endif
54
55set TR_Map to 4
56
57end