TR_m3_NPC_MadrilBerend
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
guardarrest
noLore
T_Local_NPC
T_Local_NoLore
OnPCHitme
Source
1Begin TR_m3_NPC_MadrilBerend
2
3short TR_Map
4short control
5short controlQ
6short guardarrest
7short noLore
8short T_Local_NPC
9short T_Local_NoLore
10Short OnPCHitme
11
12if ( MenuMode )
13 return
14endif
15
16if ( CellChanged )
17 if ( GetJournalIndex "TR_m3_AT_Brother" == 105 )
18 enable
19 elseif ( TR_m3_Brother_TrialReset > 0 )
20 disable
21 else
22 enable
23 endif
24endif
25
26if ( GetJournalIndex "TR_m3_AT_Brother" == 100 )
27 if ( GetTarget "TR_m3_Hlarven Berend" == 0 )
28 StartCombat "TR_m3_Hlarven Berend"
29 endif
30elseif ( GetJournalIndex "TR_m3_AT_Brother" == 253 )
31 if ( GetTarget "TR_m3_Hlarven Berend" == 1 )
32 StopCombat
33 endif
34 if ( GetTarget Player == 0 )
35 StartCombat Player
36 endif
37endif
38
39if ( OnPCHitme == 1 )
40 if ( GetJournalIndex "TR_m3_AT_Brother" == 100 )
41 Journal "TR_m3_AT_Brother" 253
42 "TR_m3_Llaren Ilvi"->ForceGreeting
43 endif
44 set OnPCHitme to 0
45endif
46
47if ( OnDeath )
48 if ( GetJournalIndex "TR_m3_AT_Brother" >= 70 )
49 if ( GetJournalIndex "TR_m3_AT_Brother" <= 100 )
50 set "TR_m3_Brother_TrialReset" to 5
51 StartScript "TR_m3_AT_Brother_Movement"
52 endif
53 endif
54 if ( GetJournalIndex "TR_m3_AT_Brother" == 100 )
55 Journal "TR_m3_AT_Brother" 102
56 elseif ( GetJournalIndex "TR_m3_AT_Brother" >= 10 )
57 Journal "TR_m3_AT_Brother" 251
58 endif
59endif
60
61if ( TR_Map )
62 return
63endif
64
65set TR_Map to 3
66set T_Local_NoLore to 1
67
68End