EvaluateSpeedwalk script

Posted by Xandler on Tue 20 Nov 2018 01:33 AM — 5 posts, 17,535 views.

#0
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.
Australia Forum Administrator #1
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.
#2
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.
Amended on Tue 20 Nov 2018 03:58 AM by Xandler
Australia Forum Administrator #3
Yes, well you don't quote arguments to a function, you put them in brackets. eg.


Execute (EvaluateSpeedwalk ("%2"))
Australia Forum Administrator #4
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.