TR_m3_MT_WritDils
TR_Mainland.esm
Variables
8
Local Variables
CL1
CL2
TR_map
control
controlQ
controlQ1
nolore
T_Local_NPC
Source
1Begin TR_m3_MT_WritDils
2; log a journal entry for each successful 'hit' the player performs for the Morag Tong
3
4; script location: should be placed on each and every target of the Morag Tong, with
5; changes to reflect the person it is running on.
6
7short CL1
8short CL2
9short TR_map
10short control
11short controlQ
12short controlQ1
13short nolore
14short T_Local_NPC
15
16set TR_map to 7
17
18if ( MenuMode == 1 )
19 return
20endif
21
22if ( CellChanged == 1 )
23 set CL1 to GetPCCrimeLevel
24endif
25
26; killing Dils after you know who he is, but before you got the permission to do so
27
28if ( OnDeath == 1 )
29 if ( GetJournalIndex TR_m3_MT_Sp_Dils == 10 )
30 if ( TR_m3_MT_DilsNoteFound == 1 )
31 Player->Journal TR_m3_MT_Sp_Dils 92
32 endif
33 elseif ( GetJournalIndex TR_m3_MT_Sp_Dils == 20 )
34 Player->Journal TR_m3_MT_Sp_Dils 92
35 elseif ( GetJournalIndex TR_m3_MT_Sp_Dils == 30 )
36 ; ... and if the player has a writ for us...
37
38 set CL2 to GetPCCrimeLevel
39 if ( CL2 > CL1 )
40 ; ... append a journal entry if the execution is seen ...
41 Player->Journal TR_m3_MT_Sp_Dils 80
42 else
43 ; ... append a journal entry if the execution is NOT seen ...
44 Player->Journal TR_m3_MT_Sp_Dils 90
45 endif
46 endif
47
48endif
49
50; if you tipped him off, he will be prepared
51; sword and shield only if the player hasn't taken them
52if ( control == 1 )
53 if ( GetJournalIndex TR_m3_MT_Sp_Dils == 30 )
54 if ( controlQ == 0 )
55 additem "TR_m7_Savris_Fire_Eater_wield" 1
56 set controlQ to 2
57 endif
58 if ( controlQ1 == 0 )
59 additem "TR_m7_Savris_Sword_wield" 1
60 set controlQ1 to 2
61 endif
62 additem bonemold_cuirass 1
63 additem morag_tong_helm 1
64 additem T_De_BonemoldKrage_GauntletL_01 1
65 additem T_De_BonemoldKrage_GauntletR_01 1
66 additem p_restore_health_q 2
67 ForceGreeting
68 endif
69endif
70
71End