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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Godfrey123456
Beginner


Joined: 17 Feb 2002
Posts: 18
Location: Hong Kong

PostPosted: Mon Mar 04, 2002 2:35 am   

About the status of speed walking
 
I would like to write scripts which would execute a certain command after slowing with the map to a place.

How can I know if zmud has finished slowalking to the destination? I mean, not typing #path to see if there is any steps ahead, but to write a pattern to trigger the desired command once the path is finished.

Godfrey.
Reply with quote
Godfrey123456
Beginner


Joined: 17 Feb 2002
Posts: 18
Location: Hong Kong

PostPosted: Mon Mar 04, 2002 3:57 am   
 
em.. maybe I have made it a bit complicated. :P

In fact I want to go to store and buy food. So I entered,
#slow %walk(store);buy food

I have set the delay time of slow walking to 100 ms.

but the problem is that "buy food" is executed when the first step is made, not at the moment reaching the store.

I cannot use "#walk store;buy food" directly because I wouldn't know where were I when I am hungry, I may be very far away then. If I enter more than 30 cmds a time, I would be fainted. so I must use #slow instead.

How can I solve the problem ?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Mar 04, 2002 4:33 am   
 
#slow %concat(%walk(store),";buy food")
There now buy food is the last command being done by the slow walk.
Reply with quote
Godfrey123456
Beginner


Joined: 17 Feb 2002
Posts: 18
Location: Hong Kong

PostPosted: Mon Mar 04, 2002 6:26 am   
 
Cool, man !

Thx very much :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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