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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Mon Mar 12, 2007 10:56 pm   

Life beyond #WAIT
 
I need help to explain to me the best way to avoid using the #WAIT command.

Currently if I wanted to create an alias to go north north up east kill monster west down south south, I would do the following:
Code:

North
#WAIT 1000
North
#WAIT 1000
up
#WAIT 1000
etc...


Can someone tell me how I can avoid using the #WAIT command as it seems to be deemed a bad bad thing.

Forever Noob!
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Mon Mar 12, 2007 11:28 pm   
 
Well, for the things you have listed. this would work

Code:
#var WtM {"north|East|Southwest|Up"}
#ALARM "MovementA" {*1} {#if (%null(@WtM)) {#sus MovementA} {%pop(WtM)}}


Note this leaves the MovementA alarm in your settings. If you don't want that use #untrig instead of #sus.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Mar 12, 2007 11:52 pm   
 
Somewhat off topic. Thanks Arminas I was thinking of a way to handle my alarms and you reminded me of #Suspend Now to see if I can get it to work!
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Mar 13, 2007 12:38 am   
 
You can also set the Send Delay preference to add a 1000ms delay between all speedwalk directions, and then just use the normal .2nue(kill monster)ws2s kind of speedwalk command.

Arminas's suggestion is a good one. You can also just do this:

Code:
North
#ALARM +1 {
  North
  #ALARM +1 {
    up
    #ALARM +1 {
      etc
      }
    }
  }
}

although it's pretty brute force. I plan to eventually revamp the #WAIT command to try and make it so that it doesn't have so many issues. And actually, your use of #WAIT in this case is probably fine. It just means that you'll have an alias thread stuck running in the background and waiting. The general problem with what you are doing is more of a case of it not handling abnormal situations. For example, what if you get attacked after your second movement North? Your alias will just keep going blindly along. That's why it's usually better to use the Safe or Slow walking features, which are designed to provide more control over this kind of walking around the MUD.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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