TR_m4_BarendrethOrdSc
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m4_BarendrethOrdSc
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9if ( OnDeath )
10 set TR_m4_Barendreth_DeadOrd to ( TR_m4_Barendreth_DeadOrd + 1 )
11 if ( TR_m4_Barendreth_DeadOrd >= 10 )
12 if ( GetJournalIndex "TR_m4_VA_BarendrethProtection" >= 10 )
13 if ( GetJournalIndex "TR_m4_VA_BarendrethProtection" < 100 )
14 Journal "TR_m4_VA_BarendrethProtection" 20
15 endif
16 endif
17 endif
18endif
19
20if ( PCVampire == -1 )
21 ; become peaceful if you cured your vampirism
22 if ( control < 2 )
23 set control to 2
24 setfight 30
25 endif
26elseif ( PCVampire )
27 ; attack on sight if you're a vampire
28 if ( control == 0 )
29 set control to 1
30 setfight 100
31 endif
32endif
33
34if ( TR_Map )
35 return
36endif
37
38set TR_Map to 4
39
40End