TR_m4_Velms_Braven_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_Velms_Braven_sc
2
3; Script on NPC TR_m4_Velms_Braven for Bal Foyen Temple quest
4; TR_m4_TT_AndothrenCharityMels. This is the drunkard whom Mels wants to
5; apologize.
6
7short TR_Map
8short control
9short controlQ
10short NoLore
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( GetJournalIndex TR_m4_TT_AndothrenCharityMels == 20 )
15 if ( controlQ == 0 )
16 if ( GetHealthGetRatio < 0.5 )
17 set controlQ to 1
18 ForceGreeting
19 elseif ( GetFatigue < 0 )
20 set controlQ to 1
21 ForceGreeting
22 endif
23 endif
24endif
25
26if ( OnDeath )
27 if ( GetJournalIndex TR_m4_TT_AndothrenCharityMels >= 20 )
28 if ( GetJournalIndex TR_m4_TT_AndothrenCharityMels <= 30 )
29 Journal TR_m4_TT_AndothrenCharityMels 35
30 endif
31 endif
32 if ( GetDistance TR_m4_TT_Ravur_Othravel < 10000 )
33 set TR_m4_TT_Ravur_Othravel.trackGreedMels to -5
34 endif
35endif
36
37if ( TR_Map == 4 )
38 return
39endif
40
41set TR_Map to 4
42
43End