Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Fri Mar 13, 2009 8:19 pm   

Pausing and resuming a trigger. Wait for input
 
I need to pause a trigger and wait for my input. It asks for my input alright, but the trigger will not pause for the duration. Trigger included below.

Code:
#IF (%ismember(%1,@SafeQuestList)=0) {
  #IF (%ismember(%1,@AggroQuestList)=0) {
    #YESNO "Is this a safe location?:"@qLocation {
      #ADDITEM SafeQuestList %1;varJog = %prompt(@qLocation,"Enter the Jog name.");#ADDKEY QuestLocationList @qLocation @varJog}
      {#ADDITEM AggroQuestList %1;quest quit;creca;#T- quest}
    } {questq}
}

{plaza;west;#SEND %db(@QuestLocationList,@qLocation);otsi}


I want it to wait until I give the name of the jog for it to save and only then move on.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Mar 14, 2009 8:05 am   
 
You can accomplish what you want being using #WAIT or #WAITSIGNAL but a simpler and cleaner approach would be to use an Event and Trigger instead. Have the trigger provide the go as normal to give the YESNO prompt. Then you can have it raise and event that actually sends the information you want.
_________________
Asati di tempari!
Reply with quote
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Tue Mar 17, 2009 9:57 am   
 
ok, seems that %prompt now halts the trigger... I could have sworn it did not do that the first time I tried.

But now I have another problem. On some occasions, when I have another window opened on top of Cmud, the prompt window appears behind Cmud main window. Making it impossible to enter anything to the prompt window and close it. And since the prompt window takes priority over everything else, I can not do anything with the Main window either. All I can do, is to open the task manager and force Cmud to close.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Mar 17, 2009 5:04 pm   
 
This is actually a bug in Windows z-ordering implementation and not too much can be done about it. You can (usually highlight CMUD) to give it focus and then hit Esc to cancel the prompt. Doing an Alt-Tab should be able to get you CMUD focus as well, but won't bring the prompt window to the front.
_________________
Asati di tempari!
Reply with quote
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Wed Mar 18, 2009 9:47 am   
 
Ok. It just happened again. Tried what you said, highlighted Cmud and tried ESC key - nothing. Tried Alt+F4 - nothing, Enter - nothing. So in the end, I still had to open up the task manager and force Cmud to close.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net