TheBlob2 Posted March 7, 2015 Share Posted March 7, 2015 How do i make a modav function activate as soon as someone enters a menu? And then undo the modav immediately after exiting that exact menu? Link to comment Share on other sites More sharing options...
claustromaniac Posted March 7, 2015 Share Posted March 7, 2015 (edited) Use a syntax such as the following: int status Begin MenuMode if MenuMode 1002 ;if you want to use modAV when the inventory menu is active if status == 0 Player.modAV Strength 5 set status to 1 endif else if status Player.modAV Strength -5 set status to 0 endif endif end Begin GameMode if status Player.modAV Strength -5 set status to 0 endif end MenuMode Edited March 7, 2015 by claustromaniac Link to comment Share on other sites More sharing options...
TheBlob2 Posted March 7, 2015 Author Share Posted March 7, 2015 Does the gamemode block also trigger when transitioning between various different menus? Just asking because im trying to make a script that will lower your stats when you are looking at them in the stats menu, but i want them to go back to normal when looking at your journal/inventory Link to comment Share on other sites More sharing options...
claustromaniac Posted March 7, 2015 Share Posted March 7, 2015 (edited) The GameMode blocktype keeps running as long as you're not in MenuMode, in other words, as long as no menu is active. This means that if you go from menu to menu - like when you go from the stats menu to the inventory menu - it just won't run then. In my example I used the MenuMode function during MenuMode to check if the inventory menu was being displayed, and acted accordingly. In your case you want to check if the stats menu is active, so you'll want to use if MenuMode 1003 instead of if MenuMode 1002. All the information you need is in those links, you just need to read it. Happy modding! Edited March 7, 2015 by claustromaniac Link to comment Share on other sites More sharing options...
Recommended Posts