TR_m3_q_counterfeiterlead_scr
TR_Mainland.esm
Variables
6
Local Variables
nolore
journalonce
Control
TR_Map
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m3_q_counterfeiterlead_scr
2
3short nolore
4short journalonce
5short Control
6short TR_Map
7short T_Local_NPC
8short T_Local_NoLore
9
10
11if ( journalonce == 1 )
12 return
13endif
14
15if ( GetAttacked )
16 "TR_m3_Senil_Sedri"->StartCombat Player
17 "TR_m3_Senil_Sedri"->SetFight, 100
18endif
19
20if ( GetDeadCount, "TR_m3_Senil_Sedri" > 0 )
21 if ( GetDeadCount, "TR_m3_Arvs_Reladren" > 0 )
22 Journal TR_m3_EEC_counterfeit 15
23 set journalonce to 1
24 endif
25endif
26
27if ( GetJournalIndex "TR_m3_EEC_counterfeit" >= 10 )
28 if ( GetDistance, player <= 200 )
29 if ( GetJournalIndex "TR_m3_EEC_counterfeit" < 20 )
30 Journal "TR_m3_EEC_counterfeit" 20
31 endif
32 endif
33endif
34
35if ( GetJournalIndex TR_m3_EEC_counterfeit == 10 )
36 if ( GetDisabled )
37 enable
38 endif
39endif
40
41if ( GetJournalIndex TR_m3_EEC_counterfeit < 10 )
42 if ( GetDisabled == 0 )
43 disable
44 endif
45endif
46
47if ( TR_map != 3 )
48 set TR_map to 3
49endif
50
51end