TR_m7_q_brotherhoodnote_sc
TR_Mainland.esm
Variables
2
Local Variables
OnPCEquip
PCSkipEquip
Source
1Begin TR_m7_q_brotherhoodnote_sc
2
3short OnPCEquip
4short PCSkipEquip
5set PCSkipEquip to 0
6
7; Activating from the inventory
8if ( MenuMode )
9
10 set PCSkipEquip to 1
11 if ( OnPCEquip )
12
13 if ( GetJournalIndex TR_m7_MT_Special1 >= 10 )
14 if ( GetJournalIndex TR_m7_MT_Special1 < 100 )
15 Journal TR_m7_MT_Special1 71
16 endif
17 endif
18
19 set OnPCEquip to 0
20 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line
21 Activate
22 endif
23
24 return
25endif
26
27; Activating in the world
28if ( OnActivate )
29
30 if ( GetJournalIndex TR_m7_MT_Special1 >= 10 )
31 if ( GetJournalIndex TR_m7_MT_Special1 < 100 )
32 Journal TR_m7_MT_Special1 71
33 endif
34 endif
35
36 Activate
37endif
38end