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