TR_m3_Kha_Arara_sc
TR_Mainland.esm
Variables
11
Local Variables
TR_Map
control
controlQ
NoLore
stage
background
questSY
killed
T_Local_NPC
T_Local_NoLore
time
Source
1Begin TR_m3_Kha_Arara_sc
2; This script copies T_ScNpc_Mw_Map3Nolore
3; and makes her topics reset when the PC exits dialogue
4
5short TR_Map
6short control
7short controlQ
8short NoLore
9short stage
10short background
11short questSY
12short killed
13
14float time
15short T_Local_NPC
16short T_Local_NoLore
17
18if ( stage == 2 )
19 if ( MenuMode )
20 return
21 endif
22
23 set time to ( time + GetSecondsPassed )
24
25 if ( time > 3.7 )
26 PlaceAtMe "T_Glb_Var_GhostDeathFX2" 1 0 0
27 Enable
28 set stage to 0
29 Resurrect
30 return
31 endif
32
33 if ( time > 1.7 )
34 Disable
35 endif
36endif
37
38if ( stage == 0 )
39 If ( GetHealth < 1 )
40 set stage to 1
41 If ( GetFatigue <= 0 )
42 PlaceAtMe "T_Glb_Var_GhostDeathFX1" 1 0 0
43 else
44 PlaceAtMe "T_Glb_Var_GhostDeathFX2" 1 0 0
45 endif
46 endif
47endif
48
49If ( OnDeath )
50 set time to 0
51 set stage to 2
52 set killed to 1
53endif
54
55if ( MenuMode )
56 return
57endif
58
59; makes her forget everything except death
60set control to 0
61set controlQ to 0
62set background to 0
63set questSY to 0
64
65if ( TR_Map == 3 )
66 return
67endif
68
69set TR_Map to 3
70
71End