Scripts

TR_m7_q_brotherhoodnote2_sc

TR_Mainland.esm
Variables 3
Local Variables
OnPCEquip
PCSkipEquip
doOnce
Source
1Begin TR_m7_q_brotherhoodnote2_sc 2 3short OnPCEquip 4short PCSkipEquip 5set PCSkipEquip to 0 6short doOnce 7 8; Activating from the inventory 9if ( MenuMode ) 10 11 set PCSkipEquip to 1 12 if ( OnPCEquip ) 13 14 if ( GetJournalIndex TR_m7_MT_Special2 >= 10 ) 15 if ( GetJournalIndex TR_m7_MT_Special2 < 50 ) 16 Journal TR_m7_MT_Special2 50 17 endif 18 endif 19 20 set OnPCEquip to 0 21 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line 22 Activate 23 endif 24 25 return 26endif 27 28; Activating in the world 29if ( OnActivate ) 30 31 if ( GetJournalIndex TR_m7_MT_Special2 >= 10 ) 32 if ( GetJournalIndex TR_m7_MT_Special2 < 50 ) 33 Journal TR_m7_MT_Special2 50 34 endif 35 endif 36 37 Activate 38endif 39 40if ( GetJournalIndex TR_m7_MT_Special2 >= 10 ) 41 if ( GetDisabled ) 42 enable 43 endif 44endif 45 46if ( doOnce ) 47 return 48endif 49 50disable 51set doOnce to 1 52 53end