TR_m7_HH_Alvynu_5_LoneAss_sc
TR_Mainland.esm
Variables
5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m7_HH_Alvynu_5_LoneAss_sc
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8
9if ( CellChanged == 1 )
10 if ( TR_m7_HH_Alvynu_5_AssState == 1 )
11 if ( GetDisabled == 1 )
12 Enable
13 endif
14 if ( control == 0 )
15 set control to 1
16 endif
17 elseif ( GetDisabled == 0 )
18 Disable
19 set control to 0
20 endif
21endif
22
23if ( control == 1 )
24 if ( GetDistance "TR_m7_Mureth Arelan" <= 500 )
25 setfight 100
26 startcombat "TR_m7_Mureth Arelan"
27 endif
28elseif ( control == 2 )
29 if ( GetDeadCount "TR_m7_Mureth Arelan" == 0 )
30 if ( GetEffect sEffectCalmHumanoid == 0 )
31 startcombat "TR_m7_Mureth Arelan"
32 endif
33 endif
34endif
35
36if ( TR_Map )
37 return
38endif
39
40set TR_Map to 7
41
42End