Jump to content

in and out of menumode


TheBlob2

Recommended Posts

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 by claustromaniac
Link to comment
Share on other sites

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

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 by claustromaniac
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...