TR_m4_NPC_Firolen_Ervanys
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
stage
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Firolen_Ervanys
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short stage
8short T_Local_NPC
9short T_Local_NoLore
10
11if ( stage == 2 )
12 if ( MenuMode )
13 return
14 endif
15
16 if ( GetDisabled == 0 )
17 Disable
18 endif
19endif
20
21if ( stage == 0 )
22 If ( GetHealth < 1 )
23 set stage to 1
24 If ( GetFatigue <= 0 )
25 PlaceAtMe "T_Glb_Var_GhostDeathFX1" 1 0 0
26 else
27 PlaceAtMe "T_Glb_Var_GhostDeathFX2" 1 0 0
28 endif
29 endif
30endif
31
32If ( OnDeath )
33 set stage to 2
34endif
35
36if ( TR_Map == 4 )
37 return
38endif
39
40set TR_Map to 4
41
42End