TR_m4_q_orlukhtreaty_scr
TR_Mainland.esm
Variables
5
Local Variables
disableonce
enableonce
readNote
OnPCEquip
PCSkipEquip
Source
1begin TR_m4_q_orlukhtreaty_scr
2
3short disableonce
4short enableonce
5short readNote
6short OnPCEquip
7short PCSkipEquip
8
9if ( readNote == 1 )
10 return
11endif
12
13set PCSkipEquip to 0
14
15if ( OnActivate == 1 )
16 if ( GetJournalIndex "TR_m4_VA_Proper" >= 10 )
17 Journal "TR_m4_VA_Proper" 150
18 set readNote to 1
19 endif
20 Activate
21 return
22endif
23
24if ( menumode == 0 )
25 return
26endif
27
28set PCSkipEquip to 1
29
30if ( OnPCEquip == 1 )
31 if ( GetJournalIndex "TR_m4_VA_Proper" >= 10 )
32 Journal "TR_m4_VA_Proper" 150
33 endif
34 set readNote to 1
35 set OnPCEquip to 0
36 set PCSkipEquip to 0
37 Activate
38endif
39
40if ( enableonce )
41 return
42endif
43
44if ( GetJournalIndex, "TR_m4_VA_Proper" >= 10 )
45 enable
46 set enableonce to 1
47endif
48
49if ( disableonce )
50 return
51endif
52
53if ( GetJournalIndex, "TR_m4_VA_Proper" < 10 )
54 disable
55 set disableonce to 1
56endif
57
58end