TR_m4_TG_VilungilLedger_scp
TR_Mainland.esm
Variables
2
Local Variables
PCSkipEquip
pickedup
Source
1Begin TR_m4_TG_VilungilLedger_scp
2
3short PCSkipEquip
4short pickedup
5
6if ( pickedup == 1 )
7 set pickedup to 0
8 if ( GetJournalIndex "TR_m4_TG_Shei6" >= 10 )
9 if ( GetJournalIndex "TR_m4_TG_Shei6B" < 50 )
10 Journal "TR_m4_TG_Shei6B" 50
11 ShowMap "Monastery of St. Aralor"
12 endif
13 else
14 set TR_m4_TG_VilungilLedger_Read to 1
15 endif
16endif
17
18; for activating if the book from the inventory screen
19if ( PCSkipEquip == 1 )
20 set PCSkipEquip to 0
21 set pickedup to 1
22 return
23endif
24
25; prevents the book being opened from the gameworld whilst in menu mode
26if ( MenuMode == 1 )
27 return
28endif
29
30; for activating the book when it is placed in the game world
31if ( OnActivate == 1 )
32 Activate
33 set pickedup to 1
34endif
35
36end