Scripts

TR_m4_Om_ReRe_Note

TR_Mainland.esm
Variables 2
Local Variables
OnPCEquip
PCSkipEquip
Source
1; For Remnants of Resdayn quest; attached to the note from Dreynos Helvi. Will fire once he 2Begin TR_m4_Om_ReRe_Note 3 4short OnPCEquip 5short PCSkipEquip 6 7set PCSkipEquip to 0 8; any actions that might end the script must be placed lower than this line 9 10; Activating from the inventory 11 12if ( MenuMode ) 13 14 ; the vanilla engine fails to set PCSkipEquip under certain 15 ; conditions, so we must do it ourselves for 16 ; OnPCEquip to work properly 17 18 set PCSkipEquip to 1 19 if ( OnPCEquip ) 20 if ( GetJournalIndex, "TR_m4_Om_RemnantsPath3" >= 40 ) 21 if ( GetJournalIndex "TR_m4_Om_RemnantsPath3" < 50 ) 22 if ( GetJournalIndex "TR_m4_Om_RemnantsPath2" < 50 ) 23 Journal, "TR_m4_Om_RemnantsPath3", 50 24 endif 25 endif 26 endif 27 set OnPCEquip to 0 28 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line 29 Activate 30 endif 31 32 ; this return is important 33 ; we must make sure OnActivate secton is only accessed outside of MenuMode 34 ; or the vanilla engine fails to take the book if opened from the world 35 return 36endif 37 38; Activating in the world 39if ( OnActivate ) 40 if ( GetJournalIndex, "TR_m4_Om_RemnantsPath3" >= 40 ) 41 if ( GetJournalIndex "TR_m4_Om_RemnantsPath3" < 50 ) 42 if ( GetJournalIndex "TR_m4_Om_RemnantsPath2" < 50 ) 43 Journal, "TR_m4_Om_RemnantsPath3", 50 44 endif 45 endif 46 endif 47 Activate 48endif 49 50End