Results 1 to 10 of 20

Thread: openMenu not working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    You could try to change the order in your execKey parameter:
    instead of closing your menu first and then sending a response, send the menuresponse first.

    execKey "8" { scriptMenuResponse "admin"; play "mouse_over"; close quickmessage; }

    if a menuresponse occurs with a menu of "-1", as far as i can say from my expirience, in most cases an indicator of a not precached menu.
    I also added a debug-sound in the response to see if it is properly triggered. You should also do something like this:

    self waittill( "menuresponse" , menu , response );
    iPrintLn( "Menu: " + menu + " Response: " + response );

    as additional debug.
    Last edited by serthy; 11th November 2013 at 19:13.

  2. #2
    Private
    Join Date
    May 2013
    Posts
    27
    Thanks
    0
    Thanked 19 Times in 11 Posts
    Quote Originally Posted by serthy View Post
    ...
    if a menuresponse occurs with a menu of "-1", as far as i can say from my expirience, in most cases an indicator of a not precached menu.
    ...
    So what you're saying is that _menus:nMenuResponse() was able to get a response from a menu that was not precached?!
    Wouldn't that be highly unlikely, if not impossible?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •