TR_m4_AA_Sehutu_SkelSumScp
TR_Mainland.esm
Variables
2
Local Variables
summonOnce
disableOnce
Source
1begin TR_m4_AA_Sehutu_SkelSumScp
2
3;this script summons the skeletal minions of Master Bel-Betu, in the labyrinth of Sehutu
4;they spawn only if the master is hostile
5
6short summonOnce
7short disableOnce
8;global TR_m4_AA_SehutuDead
9;global TR_m4_AA_SehutuAggro
10
11if ( MenuMode )
12 return
13endif
14
15if ( disableOnce == 0 )
16 Disable
17 set disableOnce to 1
18endif
19
20if ( TR_m4_AA_SehutuDead == 1 )
21 if ( GetDisabled == 0 )
22 StopCombat
23 Disable
24 endif
25endif
26
27if ( summonOnce == 0 )
28 if ( TR_m4_AA_SehutuAggro == 1 )
29 if ( TR_m4_AA_SehutuDead == 0 )
30 if ( GetDistance player <= 275 )
31 Enable
32 SetFight 100
33 StartCombat player
34 PlaceAtMe "T_Glb_Var_SummonFX" 1 1 1
35 PlaySound "conjuration hit"
36 set summonOnce to 1
37 endif
38 endif
39 endif
40endif
41
42end