TR_m4_Bal_Cr_Skeleton2_Sc
TR_Mainland.esm
Variables
1
Local Variables
Controlvar
Source
1begin TR_m4_Bal_Cr_Skeleton2_Sc
2
3; Baluath Questline
4; Script running on skeletons in Verenabi.
5
6short Controlvar
7
8if ( GetDeadCount "TR_m4_Bleric" == 1 )
9 sethealth 0
10endif
11
12; Skeleton rise script
13
14if ( GetDisabled )
15 return
16endif
17
18if ( Controlvar == 0 )
19 set Controlvar to 1
20 ModCurrentFatigue -4000
21 Fall
22elseif ( Controlvar == 1 )
23 ; SkipAnim
24 if ( GetDistance player < 425 )
25 set Controlvar to 2
26 elseif ( GetTarget player )
27 set Controlvar to 2
28 elseif ( GetFatigue > -100 )
29 ModCurrentFatigue -4000
30 endif
31elseif ( Controlvar == 2 )
32 ModCurrentFatigue 4000
33 set Controlvar to 5
34 ; PlayGroup Idle
35 PlaySound3D "BoneLord Scream"
36 SetFight 100
37 StartCombat player
38endif
39
40if ( GetJournalIndex "TR_m4_Bal4_Sathram" >= 40 )
41 if ( GetJournalIndex "TR_m4_Bal4_Sathram" < 200 )
42 if ( GetDisabled )
43 return
44 else
45 disable
46 return
47 endif
48 endif
49endif
50
51end