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 06, 2009 11:45 am   

#OK and #STEP doing the same thing
 
I'm using #SLOW and #WALK commands to move about. I have autostep disabled in the config. But it does not matter which command I issue, #OK or #STEP they both do the same thing, instead of #OK confirming and #STEP stepping. What else am I missing?



Example: #SLOW 3e followed by #OK and #STEP will step east twice, instead of just confirming and stepping once. And I do have my map open, as I read some ppl have had problems with that. The same issue occurs with #WALK command.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Fri Mar 06, 2009 2:28 pm   
 
How big is your step delay? I THINK that #STEP will force a step even before the step delay is done, whereas #OK won't, but if your step delay is zero (or potentially very low) then you wouldn't see a difference.

Another way to think of it is that #OK tells the mapper it has arrived in a room, and the mapper then says "Well what do I do next?" to which the answer is "Take another step."
Reply with quote
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Thu Mar 12, 2009 7:28 am   
 
Thanks for your reply. I got it sorted by adding a check to see if #OK had been received to the #STEP command. But now another question, I'm using %walkconfirm(1) to force confirm #OK on some occasions, it works fine, but also it sends '1' to the MUD. why is it doing that and how can I make it stop? same with %walkmode(value). It sends the actual value to the mud.
Reply with quote
Tech
GURU


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

PostPosted: Thu Mar 12, 2009 7:45 am   
 
You should use #CALL when calling a function by itself.

Code:
#CALL %walkconfirm(1)


What you're seeing the return of the %walkconfirm function.
_________________
Asati di tempari!
Reply with quote
thucar
Beginner


Joined: 06 Jan 2009
Posts: 20

PostPosted: Thu Mar 12, 2009 8:05 am   
 
Thanks Smile
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