[Ohrrpgce] script trigger when opening a menu

James Paige Bob at HamsterRepublic.com
Mon Oct 1 08:55:34 PDT 2012


For a while I have been wanting a script trigger for when a menu is 
opened, but I haven't implemented it because I have some doubts about 
how it should work.

Should it be a global script trigger for when the user presses the 
button that opens the main menu? This is my main purpose for wanting the 
feature, so people can override the menu without also having to override 
other normal user controls in an onk-keypress script

Or... should it be a menu-specific trigger which can run before a menu 
is opened in any way. This is more flexible, and could be used for other 
purposes besides my main objective, but it adds a lot of complications:

Should it be a before-menu script? and instead-of-menu script? A script 
run simultaneously with the opening of the script? Each of those choices 
has different repercussions for how the script trigger would interact 
with menus depending on whether or not the menu allows scripts and 
gameplay to proceed.

Any opinions? Right now I am leaning towards the simple global trigger 
option.

---
James


More information about the Ohrrpgce mailing list