TR_m7_Narsis_CN_guar_sc
TR_Mainland.esm
Variables
4
Local Variables
attackstate
OnPCHitMe
control
timer
Source
1Begin TR_m7_Narsis_CN_guar_sc
2
3float timer
4short attackstate
5short OnPCHitMe
6short control
7
8if ( OnDeath )
9 ModPCCrimeLevel 5000
10 return
11endif
12
13if ( OnPCHitMe )
14 if ( control == 0 )
15 set control to 1
16 ModPCCrimeLevel 300
17 endif
18 set attackstate to 1
19 set OnPCHitMe to 0
20endif
21
22if ( control == 1 )
23 if ( GetPCCrimeLevel == 0 )
24 set control to 0
25 endif
26endif
27
28if ( attackstate == 1 )
29 StartCombat player
30 set timer to ( timer + GetSecondsPassed )
31 if ( timer >= 1 )
32 set timer to 0
33 if ( GetDeadCount "TR_m7_Madeeshul" == 0 )
34 "TR_m7_Madeeshul"->StartCombat Player
35 endif
36 if ( GetDeadCount "TR_m7_Iribius Flareus" == 0 )
37 "TR_m7_Iribius Flareus"->StartCombat Player
38 endif
39 if ( GetDeadCount "TR_m7_Artham Ralvos" == 0 )
40 "TR_m7_Artham Ralvos"->StartCombat Player
41 endif
42 if ( GetDeadCount "TR_m7_Laralwen" == 0 )
43 "TR_m7_Laralwen"->StartCombat Player
44 endif
45 set attackstate to 0
46 endif
47endif
48
49End