» Thu Oct 21, 2010 5:08 pm
Due to the way menumode works, it's absolutely perfect for some things, and absolutely the wrong choice for others. Many parts of the game that handle instant/constant updating of stuff, like changes to dialog or inventory counts to name a couple, do not run when in menumode... They are disabled in this crippled mode, so certain kinds of changes made while in menumode won't register correctly until menumode is exited and a frame of gamemode runs to relook at everything. Menumode runs constantly (just like gamemode does) but only while the menu is still active. Successive menumodes, like one ShowMessage immediately following another, WILL have at least one frame of gamemode run in between them.
You can set a script up to detect when menumode has been closed by changing a variable to 1 when the menu opens, and include an "if (MenuMode == 0) && (Variable == 1)" statement in the gamemode block to run a certain piece of code inside that IF condition. Change the variable back to 0 in the end of the IF block so that section of code only runs once.
More info here: http://geck.gamesas.com/index.php/MenuMode_%28Function%29