TR_m3_NPC_WLCR_Ordinator
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m3_NPC_WLCR_Ordinator
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9if ( MenuMode )
10 return
11endif
12
13if ( GetJournalIndex TR_m3_Bala_WLCR < 65 )
14 if ( GetDisabled == 0 )
15 disable
16 endif
17 return
18elseif ( GetJournalIndex TR_m3_Bala_WLCR > 65 )
19 if ( CellChanged )
20 if ( GetDisabled == 0 )
21 disable
22 endif
23 endif
24 return
25elseif ( GetDisabled )
26 enable
27endif
28
29if ( control == 0 )
30 set control to 1
31 startcombat "TR_m3_WLCR_Kidnapper1"
32 startcombat "TR_m3_WLCR_Kidnapper2"
33 startcombat "TR_m3_WLCR_Kidnapper3"
34endif
35
36if ( controlQ == 0 )
37 if ( GetDistance player < 350 )
38 set controlQ to 1
39 forcegreeting
40 elseif ( GetDistance "TR_m3_WLCR_Kidnapper1" < 350 )
41 set controlQ to 1
42 forcegreeting
43 elseif ( GetDistance "TR_m3_WLCR_Kidnapper2" < 350 )
44 set controlQ to 1
45 forcegreeting
46 elseif ( GetDistance "TR_m3_WLCR_Kidnapper3" < 350 )
47 set controlQ to 1
48 forcegreeting
49 elseif ( GetDistance "TR_m3_Dolvys Teloth" < 350 )
50 set controlQ to 1
51 forcegreeting
52 endif
53endif
54
55if ( TR_Map )
56 return
57endif
58
59set TR_Map to 3
60
61End