T_ScCrea_MummyRise_02
Tamriel_Data.esm
Variables
2
Local Variables
dormant
timer
Source
1begin T_ScCrea_MummyRise_02
2
3;this is a script which makes a mummy seem like it's dead
4;it'll become undead when the player is near
5
6short dormant
7float timer
8
9if ( MenuMode == 1 )
10 return
11endif
12
13if ( dormant == 0 ) ;the mummy is knocked out -- making it sit down and wait
14 SetFatigue 0
15 SetFight 0
16 set dormant to 1
17endif
18
19if ( OnDeath == 1 )
20 set dormant to 3
21endif
22
23if ( OnActivate == 1 )
24 if ( dormant == 3 )
25 Activate
26 endif
27endif
28
29if ( dormant == 1 )
30 if ( OnActivate == 1 )
31 SetFatigue 1000
32 SetFight 100
33 startcombat, player
34 set dormant to 2
35 endif
36endif
37
38if ( dormant == 1 )
39 if ( GetDistance, player <= 512 )
40 if ( timer < 8 )
41 set timer to ( timer + GetSecondsPassed )
42 elseif ( timer >= 8 )
43 SetFatigue 1000
44 SetFight 100
45 startcombat, player
46 set dormant to 2
47 endif
48 endif
49endif
50
51
52end