TR_m4_Bal_NPC_Cattle2_Sc
TR_Mainland.esm
Variables
14
Local Variables
nolore
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoHello
NoFlee
NoIdle
NoIntruder
NoThief
OnPCHitMe
AiSet
cattle
Source
1begin TR_m4_Bal_NPC_Cattle2_Sc
2
3; Baluath Questline
4; Script for Baluath cattle.
5
6
7short nolore
8short TR_Map
9short control
10short controlQ
11short T_Local_NPC
12short T_Local_NoLore
13
14short NoHello
15short NoFlee
16short NoIdle
17short NoIntruder
18short NoThief
19
20short OnPCHitMe
21short AiSet
22short cattle
23
24; restore health if you leave the area
25if ( CellChanged )
26 ModCurrentHealth 65
27endif
28
29if ( AiSet == 0 )
30 setfight 20
31 setflee 100
32 set AiSet to -1
33endif
34
35; no journal conditions here
36; they enable after recruiting Sathram Volos, so no restrictions for feeding
37if ( PCVampire == 1 )
38 if ( VampClan == 100 )
39 if ( OnPCHitMe == 1 )
40 SetFight 0
41 SetFlee 0
42 StopCombat
43 endif
44 endif
45endif
46
47if ( GetJournalIndex "TR_m4_Bal4_Sathram" >= 40 )
48 if ( GetDisabled )
49 enable
50 return
51 else
52 return
53 endif
54endif
55
56if ( TR_Map == 4 )
57 return
58endif
59
60set TR_Map to 4
61
62; disable at first
63Disable
64
65end