TR_m7_q_JoinCTthug
TR_Mainland.esm
Variables
10
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
DoOnce
DoOnce2
dead
OnPCHitMe
Source
1Begin TR_m7_q_JoinCTthug
2
3; Script for Camonna Tong thugs Nelvasa Avel and Gilan Vando, and beggar Frokki Green-Foot, to enable then disable during quest Join the Camonna Tong
4; Also moves Goler Urano at the start and end of the quest away from and back to his normal position
5
6short TR_Map
7short control
8short controlQ
9short T_Local_NPC
10short NoLore
11short T_Local_NoLore
12
13short DoOnce
14short DoOnce2
15short dead
16
17short OnPCHitMe
18
19if ( OnPCHitMe )
20 if ( controlQ == 0 )
21 "TR_m7_Gilan Vando"->StartCombat player
22 "TR_m7_Nelvasa Avel"->StartCombat player
23 set controlQ to 1
24 endif
25 startcombat player
26 set OnPCHitMe to 0
27endif
28
29if ( dead == 0 )
30 if ( GetJournalIndex TR_m7_Ns_JoinCamonnaTong >= 100 )
31 if ( GetDisabled == 0 )
32 disable
33 endif
34 endif
35endif
36
37if ( OnDeath )
38 set dead to 1
39endif
40
41if ( GetJournalIndex TR_m7_Ns_JoinCamonnaTong <= 0 )
42 if ( GetDisabled == 0 )
43 Disable
44 endif
45 return
46elseif ( GetJournalIndex TR_m7_Ns_JoinCamonnaTong < 100 )
47 if ( DoOnce2 == 0 )
48 "TR_m7_Goler Urano"->PositionCell 2169 1844 -115 5400 "Narsis, Sewers: St. Veloth" ; TR_m7_MARK_Ns_Goler
49 "TR_m7_Goler Urano"->AiWander 0 0 0 0
50 set DoOnce2 to 1
51 endif
52 if ( GetDisabled )
53 enable
54 endif
55elseif ( DoOnce == 0 )
56 "TR_m7_Goler Urano"->PositionCell 3638 5 -115 0 "Narsis, Sewers: St. Veloth" ; TR_m7_MARK_Ns_Goler
57 "TR_m7_Goler Urano"->AiWander 0 0 0 0
58 set DoOnce to 1
59endif
60
61if ( TR_Map )
62 return
63endif
64
65set TR_Map to 7
66
67End