TR_m4_Bal_Cr_Skeleton1_Sc
TR_Mainland.esm
Variables
1
Local Variables
Controlvar
Source
1begin TR_m4_Bal_Cr_Skeleton1_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 < 450 )
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 StartCombat player
36 PlaySound3D "BoneLord Scream"
37endif
38
39if ( GetJournalIndex "TR_m4_Bal4_Sathram" >= 40 )
40 if ( GetJournalIndex "TR_m4_Bal4_Sathram" < 200 )
41 if ( GetDisabled )
42 return
43 else
44 disable
45 return
46 endif
47 endif
48endif
49
50end