TR_m3_OE_q_MurderousKnight2
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
NoLore
T_Local_NPC
T_Local_NoLore
Timer
Source
1Begin TR_m3_OE_q_MurderousKnight2
2
3short TR_Map
4short NoLore
5float Timer
6short T_Local_NPC
7short T_Local_NoLore
8
9;Ashlander killing copy
10
11; disable before it's needed
12if ( GetJournalIndex, "TR_m3_OE_WhereHorseGone" <= 10 )
13 if ( GetDisabled )
14 return
15 else
16 disable
17 endif
18 return
19endif
20
21; disable & delete after it's needed
22if ( GetJournalIndex, "TR_m3_OE_WhereHorseGone" >= 13 )
23 if ( getDisabled )
24 SetDelete, 1
25 return
26 endif
27 if ( CellChanged == 1 )
28 disable
29 endif
30endif
31
32if ( GetDistance, player <= 5000 )
33
34if ( GetJournalIndex, "TR_m3_OE_WhereHorseGone" == 11 )
35 if ( Timer == 0 )
36 enable
37 ;StartCombat, "TR_m3_Yavan Ajurnsar"
38 ;StartCombat, "TR_m3_Sainat Hassanibi"
39 ;"TR_m3_Sainat Hassanibi"->StartCombat, "TR_m3_q_OE_Hormidac2"
40 ;"TR_m3_Yavan Ajurnsar"->StartCombat, "TR_m3_q_OE_Hormidac2"
41 endif
42 ; using Timer to periodically remind them of their feud:
43 set Timer to ( Timer + GetSecondsPassed )
44 if ( Timer >= 6 )
45 set Timer to 0
46 ;if ( GetWeaponDrawn == 0 )
47 ;if ( getDeadCount "TR_m3_Sainat Hassanibi" < 1 )
48 ;StartCombat, "TR_m3_Sainat Hassanibi"
49 ;if ( getDeadCount "TR_m3_Yavan Ajurnsar" < 1 )
50 ;"TR_m3_Yavan Ajurnsar"->StartCombat, "TR_m3_q_OE_Hormidac2"
51 ;endif
52 ;elseif ( getDeadCount "TR_m3_Yavan Ajurnsar" < 1 )
53 ;StartCombat, "TR_m3_Yavan Ajurnsar"
54 ;else
55 Journal, "TR_m3_OE_WhereHorseGone", 12
56 ;endif
57 ;else ; both ashlanders killed
58 ;if ( getDeadCount "TR_m3_Sainat Hassanibi" < 1 )
59 ;elseif ( getDeadCount "TR_m3_Yavan Ajurnsar" < 1 )
60 ;else
61 ; in case of friendly fire, ceasefire
62 StopCombat
63 SetFight, 0
64 Journal, "TR_m3_OE_WhereHorseGone", 12
65 ;endif
66 ;endif
67 endif
68endif
69
70endif
71
72if ( OnDeath == 1 )
73 Journal, "TR_m3_OE_WhereHorseGone", 14
74endif
75
76if ( TR_Map == 3 )
77 return
78endif
79
80set TR_Map to 3
81
82End