TR_m7_Ahabhu_scr
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
controlQ1
NoLore
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
doOnce
Source
1Begin TR_m7_Ahabhu_scr
2
3short TR_Map
4short control
5short controlQ
6short controlQ1
7short NoLore
8short T_Local_NPC
9short T_Local_NoLore
10short T_Local_Khajiit
11short doOnce
12
13; disable until quest happens.
14if ( controlQ1 == 0 )
15 disable
16endif
17
18if ( controlQ1 == 1 )
19 enable
20endif
21
22; if you warn him he gets out of there
23if ( controlQ == 1 )
24 if ( getDeadCount "TR_m7_q_Ahabhu" == 0 )
25 if ( CellChanged == 1 )
26 set controlQ1 to 0
27 positioncell 4465 3282 16960 5400 "Old Ebonheart, Hostel of Stendarr's Mercy"
28 StartScript TR_m7_HO_TT_04_AhabhuTimer
29 endif
30 endif
31endif
32
33; led him to slave market
34if ( GetPCCell "Hlan Oek, Idera Bethendas: Slave Merchant" == 1 )
35 if ( GetDistance player <= 256 )
36 if ( doOnce == 0 )
37 Journal TR_m7_HO_TT_04 45
38 AiWander 0 0 0 0 0 0 0
39 set doOnce to 1
40 endif
41 endif
42endif
43
44; remove and replace with a dead version while the player is gone
45if ( GetJournalIndex TR_m7_HO_TT_04 > 45 )
46 if ( GetJournalIndex TR_m7_HO_TT_04 < 110 )
47 if ( doonce == 1 )
48 if ( CellChanged == 1 )
49 set controlQ1 to 0
50 sethello 0
51 "TR_m7_q_AhabhuD"->enable
52 set doonce to 2
53 return
54 endif
55 endif
56 endif
57endif
58
59if ( T_Local_Khajiit )
60 return
61endif
62
63set T_Local_Khajiit to 1
64set TR_Map to 7
65
66end