TR_NecMQ_BandenTherasScript
TR_Mainland.esm
Variables
1
Local Variables
controlQ
Source
1Begin TR_NecMQ_BandenTherasScript
2
3; this script spawns and despawns a ghost relative of Savile Theras for the player to talk to
4; 6+
5
6Short controlQ
7
8if ( MenuMode == 1 )
9 Return
10endif
11
12; the player received the ringlet, ghost can disappear again
13
14if ( GetJournalIndex TR_NecMQ_Destroyer >= 90 )
15 if ( GetDisabled == 1 )
16 SetDelete 1
17 else
18 Disable
19 endif
20
21; the player has talked to the ghost which leads either to hostility or the player being allowed into the tomb
22
23elseif ( GetJournalIndex TR_NecMQ_Destroyer >= 75 )
24 Return
25
26elseif ( GetJournalIndex TR_NecMQ_Destroyer == 70 )
27 if ( controlQ == 0 )
28 SetFight 100
29 StartCombat Player
30 Set controlQ to 1
31 endif
32 Return
33
34; the quest has started: the ghost appears and greets the player as they enter the tomb with the urn
35
36elseif ( GetJournalIndex TR_NecMQ_Destroyer >= 60 )
37 if ( GetDisabled == 1 )
38 if ( Player -> GetItemCount TR_NecMQ_UrnDestroyer > 0 )
39 Enable
40 AIActivate Player
41 endif
42 else
43 if ( GetDistance Player < 300 )
44 ForceGreeting
45 Return
46 endif
47 endif
48
49; the ghost starts out disabled
50
51else
52 if ( GetDisabled == 0 )
53 Disable
54 endif
55
56endif
57
58End TR_NecMQ_BandenTherasScript