|
Godfrey123456 Beginner
Joined: 17 Feb 2002 Posts: 18 Location: Hong Kong
|
Posted: 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. |
|
|
|
Godfrey123456 Beginner
Joined: 17 Feb 2002 Posts: 18 Location: Hong Kong
|
Posted: 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 ? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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. |
|
|
|
Godfrey123456 Beginner
Joined: 17 Feb 2002 Posts: 18 Location: Hong Kong
|
Posted: Mon Mar 04, 2002 6:26 am |
Cool, man !
Thx very much :) |
|
|
|
|
|