TR_m4_TG_EndorothOrders_scp
TR_Mainland.esm
Variables
2
Local Variables
PCSkipEquip
pickedup
Source
1begin TR_m4_TG_EndorothOrders_scp
2
3short PCSkipEquip
4short pickedup
5
6if ( pickedup == 1 )
7 set pickedup to 0
8 if ( GetJournalIndex "TR_m4_TG_SheiAdv" < 150 )
9 Journal "TR_m4_TG_SheiAdv" 150
10 endif
11endif
12
13; for activating if the book from the inventory screen
14if ( PCSkipEquip == 1 )
15 set PCSkipEquip to 0
16 set pickedup to 1
17 return
18endif
19
20; prevents the book being opened from the gameworld whilst in menu mode
21if ( MenuMode == 1 )
22 return
23endif
24
25; for activating the book when it is placed in the game world
26if ( OnActivate == 1 )
27 Activate
28 set pickedup to 1
29endif
30
31end