TR_m2_uvo_ghost_scr
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
nolore
stage
T_Local_NPC
T_Local_NoLore
T_Local_NPC_Speaker
Source
1begin TR_m2_uvo_ghost_scr
2
3short TR_Map
4short control
5short controlQ
6short nolore
7short stage
8short T_Local_NPC
9short T_Local_NoLore
10short T_Local_NPC_Speaker
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 set stage to 2
35 set "TR_m3_TT_SpeakerState" to 2
36 Journal TR_m3_TT_Speaker 200
37 "ancestor_ghost"->SetFight 90
38 "ancestor_ghost_greater"->SetFight 90
39endif
40
41if ( GetDisabled )
42 if ( GetJournalIndex, "TR_m3_TT_Speaker" >= 30 )
43 enable
44 endif
45endif
46
47if ( TR_Map == 2 )
48 return
49endif
50
51set TR_Map to 2
52disable
53
54end