TR_m3_OE_q_MurderousKnight
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
NoLore
T_Local_NPC
T_Local_NoLore
Timer
Source
1Begin TR_m3_OE_q_MurderousKnight
2
3short TR_Map
4short NoLore
5float Timer
6short T_Local_NPC
7short T_Local_NoLore
8
9;Unesa killing copy
10
11; disable after it's needed
12if ( GetJournalIndex, "TR_m3_OE_WhereHorseGone" >= 10 )
13 if ( getDisabled )
14 SetDelete, 1
15 elseif ( CellChanged == 1 )
16 disable
17 endif
18 return
19endif
20
21; disable before it's needed
22if ( GetJournalIndex, "TR_m3_OE_WhereHorseGone" <= 8 )
23 if ( GetDisabled )
24 return
25 else
26 disable
27 endif
28 return
29endif
30
31; If we're still here, GetJournalIndex, "TR_m3_OE_WhereHorseGone" must be == 9.
32
33if ( GetDistance, player <= 3300 )
34
35if ( Timer == 0 )
36 enable
37 StartCombat, "TR_m3_Unesa Sadrathi"
38 ;"TR_m3_Unesa Sadrathi"->StartCombat, "TR_m3_q_OE_Hormidac"
39endif
40; using Timer to periodically remind them of their feud:
41set Timer to ( Timer + GetSecondsPassed )
42if ( Timer >= 7 )
43 set Timer to 1
44 if ( getDeadCount "TR_m3_Unesa Sadrathi" < 1 )
45 if ( "TR_m3_Unesa Sadrathi"->GetWeaponDrawn == 0 )
46 StartCombat, "TR_m3_Unesa Sadrathi"
47 endif
48 else
49 set Timer to -300
50 endif
51endif
52
53endif
54
55if ( OnDeath == 1 )
56 Journal, "TR_m3_OE_WhereHorseGone", 14
57endif
58
59if ( TR_Map == 3 )
60 return
61endif
62
63set TR_Map to 3
64
65End