Scripts

TR_m2_q_VaerinScroll_sc

TR_Mainland.esm
Variables 3
Local Variables
PCSkipEquip
pickedup
control
Source
1Begin TR_m2_q_VaerinScroll_sc 2 3short PCSkipEquip 4short pickedup 5short control 6 7if ( pickedup == 1 ) 8 set pickedup to 0 9 if ( control == 0 ) 10 set control to 1 11 PlaySound "conjuration cast" 12 PlaceAtPC "dremora_lord" 1 300 1 13 endif 14endif 15 16; for activating if the book from the inventory screen 17if ( PCSkipEquip == 1 ) 18 set PCSkipEquip to 0 19 set pickedup to 1 20 return 21endif 22 23; prevents the book being opened from the gameworld whilst in menu mode 24if ( MenuMode == 1 ) 25 return 26endif 27 28; for activating the book when it is placed in the game world 29if ( OnActivate == 1 ) 30 Activate 31 set pickedup to 1 32endif 33 34End