Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ EvaluateSpeedwalk script
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Xandler
(55 posts) Bio
|
| Date
| Tue 20 Nov 2018 01:33 AM (UTC) |
| Message
| Okay, the subject is rather vague (may not even be the right syntax), but basically I want when someone tells the group to go a direction, it will move me in that direction. For example: (JoeSchmo1|JoeSchmo2) tells the group, '(ww|ee|u|d|ne|es)' it moves me in those applicable directions (cardinal directions only), it's been a while since I've had this set up and have since deleted the working stuff (as I had no use for them then).
I've tried various versions of EvaluateSpeedwalk with Execute and Send, with it sent to script or speedwalk (been trying for a couple hours) and I'm losing my patience on this. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 20 Nov 2018 02:33 AM (UTC) |
| Message
| EvaluateSpeedwalk should do it.
Rather than saying you lost patience, it would help to post the code you actually used, and then describe what happened when you used it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Xandler
(55 posts) Bio
|
| Date
| Reply #2 on Tue 20 Nov 2018 02:52 AM (UTC) Amended on Tue 20 Nov 2018 03:58 AM (UTC) by Xandler
|
| Message
| Execute 'EvaluateSpeedwalk ("%2")
Send 'EvaluateSpeedwalk ("%2")
both just sent the EvaluateSpeedwalk ("%2") to the world with send to script
EvaluateSpeedwalk ("%2") doesn't send an error, but it doesn't do anything with send to script, with it send to speedwalk it gives me an invalid direction error.
I've had other various errors but can't recall them at the moment. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 20 Nov 2018 04:23 AM (UTC) |
| Message
| Yes, well you don't quote arguments to a function, you put them in brackets. eg.
Execute (EvaluateSpeedwalk ("%2"))
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Tue 20 Nov 2018 04:24 AM (UTC) |
| Message
| There is a special exception case of a single string argument, eg.
print "hello"
-- same as
print ("hello")
However even in this case "hello" is treated as a string, not a function to be called. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,608 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top