TR_m3_NPC_WLCR_Kidnapper
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m3_NPC_WLCR_Kidnapper
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9short OnPCHitMe
10
11if ( TR_m3_WLCR_FightDeath )
12 if ( CellChanged )
13 if ( GetDisabled == 0 )
14 Disable
15 endif
16 endif
17elseif ( GetJournalIndex TR_m3_Bala_WLCR < 60 )
18 if ( GetDisabled == 0 )
19 Disable
20 endif
21 return
22elseif ( GetJournalIndex TR_m3_Bala_WLCR >= 90 )
23 if ( CellChanged )
24 if ( GetDisabled == 0 )
25 Disable
26 endif
27 endif
28 ; no return here -- intentionally
29elseif ( GetDisabled )
30 Enable
31endif
32
33if ( OnDeath )
34 set TR_m3_WLCR_KidnappersDead to ( TR_m3_WLCR_KidnappersDead + 1 )
35 if ( TR_m3_WLCR_KidnappersDead == 3 )
36 Journal TR_m3_Bala_WLCR 70
37 "TR_m3_Dolvys Teloth"->AiWander 0 0 0
38 return
39 endif
40endif
41
42if ( OnPCHitMe )
43 if ( TR_m3_WLCR_KidnappersGreet == 0 )
44 set TR_m3_WLCR_KidnappersGreet to 1
45 "TR_m3_WLCR_Kidnapper1"->Forcegreeting
46 if ( GetDeadCount "TR_m3_Dolvys Teloth" == 0 )
47 "TR_m3_Dolvys Teloth"->PositionCell -68 1027 -254 1800 "Almas Thirr, Canalworks"
48 "TR_m3_Dolvys Teloth"->AiFollow player 0 0 0 0
49 "TR_m3_Dolvys Teloth"->SetHello 30
50 endif
51 return
52 endif
53 StartCombat player
54endif
55
56if ( GetDistance player < 800 )
57 if ( TR_m3_WLCR_KidnappersGreet == 0 )
58 set TR_m3_WLCR_KidnappersGreet to 1
59 "TR_m3_WLCR_Kidnapper1"->Forcegreeting
60 if ( GetDeadCount "TR_m3_Dolvys Teloth" == 0 )
61 "TR_m3_Dolvys Teloth"->PositionCell -68 1027 -254 1800 "Almas Thirr, Canalworks"
62 "TR_m3_Dolvys Teloth"->AiFollow player 0 0 0 0
63 "TR_m3_Dolvys Teloth"->SetHello 30
64 endif
65 return
66 endif
67endif
68
69if ( TR_Map )
70 return
71endif
72
73set TR_Map to 3
74
75End