TR_m7_NPC_FelvynFaryon
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
OnPCHitMe
attacked
Source
1Begin TR_m7_NPC_FelvynFaryon
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8short T_Local_NoLore
9
10short OnPCHitMe
11
12short attacked
13
14if ( getjournalindex tr_m7_HL_helpingothers >= 200 )
15 return
16endif
17
18if ( onpchitme == 1 )
19 if ( TR_m7_FelvyngangEnable )
20 "TR_m7_Bels Valor"->StartCombat Player
21 "TR_m7_Furon Rilvayn"->StartCombat Player
22 "TR_m7_Yanibi Laetha"->StartCombat Player
23 endif
24 Set attacked to 1
25 StartCombat Player
26 Set OnPCHitMe to 0
27endif
28
29if ( OnDeath )
30 if ( getjournalindex tr_m7_HL_helpingothers >= 10 )
31 if ( getjournalindex tr_m7_HL_helpingothers < 40 )
32 Journal tr_m7_HL_helpingothers 200
33 return
34 endif
35 endif
36endif
37
38if ( TR_m7_FelvyngangEnable )
39 if ( controlQ == 0 )
40 if ( attacked == 0 )
41 if ( GetDistance player <= 500 )
42 ForceGreeting
43 set controlQ to 1
44 return
45 endif
46 endif
47 endif
48endif
49
50if ( getjournalindex tr_m7_HL_helpingothers == 110 )
51 if ( cellchanged )
52 if ( attacked == 0 )
53 disable
54 Set TR_m7_FelvyngangEnable to 0
55 endif
56 endif
57endif
58
59if ( TR_Map )
60 return
61endif
62
63set TR_Map to 7
64
65End