[Ohrrpgce] script trigger when opening a menu
Ralph Versteegen
teeemcee at gmail.com
Mon Oct 1 09:17:55 PDT 2012
On 2 October 2012 04:55, James Paige <Bob at hamsterrepublic.com> wrote:
> 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?
Yes, but it should of course have a little be more context than that:
it should only be called when ESC would open the main menu.
I've long wanted an editor to customise the game controls a little.
One idea (actually think this needs some changes):
Cancel button 1: Alt
Cancel button 2: Esc
Cancel button 3: None
Menu button 1: Alt
Menu button 2: Esc
Menu button 3: None
Menu action: either 'Open Menu X' or 'Run script Y' or Nothing
Use button 1: Ctrl
Use button 2: Space
Use button 3: Enter
NPC use action: 'Activate NPC' or 'Run Script X' (or 'Open Menu Y'?)
Of course the whole thing doesn't need to be implemented at once; just
the menu action would be a good start.
> 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.
I think instead-of-menu doesn't make sense since it seems it would
only be useful for overriding the main menu, and assumably would
prevent the menu from being openable at all.
I think a script to be run simultaneously with opening the menu would
be a great feature. I would disable that option if the menu does not
allow scripts to run.
> Any opinions? Right now I am leaning towards the simple global trigger
> option.
>
> ---
> James
More information about the Ohrrpgce
mailing list