TR_m4_NPC_BthuangOutThug
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
disableOnce
greetOnce
controlQ
T_Local_NPC
NoLore
timer
Source
1Begin TR_m4_NPC_BthuangOutThug
2
3;script for the CT thug outside Bhuangthuv
4;warns the player not to come there until they've spoken with Vals Varano
5
6short TR_Map
7short disableOnce
8short greetOnce
9short controlQ
10float timer
11short T_Local_NPC
12short NoLore
13
14if ( MenuMode == 1 )
15 return
16endif
17
18if ( GetJournalIndex "TR_m4_TG_Shei6" >= 110 ) ;disable if there's peace
19 if ( GetJournalIndex "TR_m4_TG_Shei6" <= 125 )
20 disable
21 endif
22endif
23
24if ( disableOnce == 0 )
25 if ( GetDisabled == 0 )
26 disable
27 set disableOnce to 1
28 endif
29endif
30
31if ( GetDisabled == 1 )
32 return
33endif
34
35if ( controlQ == 1 )
36 set timer to 0
37 set controlQ to 2
38endif
39
40if ( controlQ == 2 )
41 if ( timer >= 15 )
42 SetFight 100
43 StartCombat player
44 set controlQ to 3
45 endif
46endif
47
48if ( greetOnce == 0 )
49 if ( GetDistance player < 512 )
50 ForceGreeting
51 set greetOnce to 1
52 endif
53endif
54
55set timer to ( timer + GetSecondsPassed )
56
57if ( TR_Map == 4 )
58 return
59endif
60
61set TR_Map to 4
62
63End