TR_m3_q_3_Relamus_sc
TR_Mainland.esm
Variables
8
Local Variables
dead
TR_Map
control
questhooked
PCMisbehaved
BlameTheClerk
T_Local_NPC
NoLore
Source
1Begin TR_m3_q_3_Relamus_sc
2
3;script on the regular Relamus Saravyne in his quarters
4;his non-Guard class copy TR_m3_q_3_Captain is the one that enters the vault during the quest
5
6;global TR_m3_q_3_info
7 ;=1 allows the player to obtain the quest topic "burglaries" from him just from latest rumours instead of disposition
8 ;=98 means the player tried to open the locked door in the vault
9 ;=99 means the vault clerk Ararvyne Saram died during the vault stakeout quest
10 ;=100 means Saram is dead and later framed with having been the thief's accomplice
11
12short dead
13short TR_Map
14short control
15short questhooked ;doonce in dialogue
16short PCMisbehaved ;for dialogue
17short BlameTheClerk
18short T_Local_NPC
19short NoLore
20
21If ( dead == 1 )
22 Return
23ElseIf ( OnDeath == 1 )
24 set dead to 1
25 if ( GetJournalIndex "TR_m3_Bo_Burglar2" >= 10 )
26 if ( GetJournalIndex "TR_m3_Bo_Burglar2" < 97 )
27 Journal "TR_m3_Bo_Burglar2" 96
28 endif
29 endif
30endif
31
32If ( TR_m3_q_3_guardsGone == 2 ) ;gone along with all the guards from 5:PM to 10:PM during the quest
33 If ( GetDisabled == 0 )
34 Disable
35 Endif
36ElseIf ( TR_m3_q_3_guardsGone == -1 )
37 If ( GetDisabled == 1 )
38 If ( GetDeadCount, "TR_m3_q_3_Captain" > 0 )
39 set dead to 1
40 Return
41 Else
42 Enable ;put him back unless his copy was killed
43 Endif
44 Endif
45Endif
46
47If ( BlameTheClerk == 1 ) ;from dialogue
48 If ( GetJournalIndex "TR_m3_Bo_Burglar2" >= 100 )
49 set BlameTheClerk to 2
50 Journal "TR_m3_Bo_Burglar2" 131
51 Endif
52Endif
53
54
55; regional filter & nolore
56
57if ( TR_Map == 3 )
58 return
59endif
60
61set TR_Map to 3
62
63End