|
metroiceberg Beginner
Joined: 19 Feb 2004 Posts: 18 Location: USA
|
Posted: Wed Oct 18, 2006 6:48 pm
Help with scripting for directions |
I'm writing a script for Fishing in Imperian, and I want to be able to set a direction to fish in, but have that also set the opposite direction as a direction to swim towards if yanked into the water.
I'm using the variables @fishdir and @swimdir for their obvious counterparts, and I'd want to use "fd" as an alias or possibly even a trigger to assign both of these variables.
Any suggestions on how to go about this? |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Wed Oct 18, 2006 7:35 pm |
#alias {fd} {fish %-1;#var fishdir %-1;#var swimdir %reversedir(%-1)}
|
|
|
|
metroiceberg Beginner
Joined: 19 Feb 2004 Posts: 18 Location: USA
|
Posted: Wed Oct 18, 2006 8:51 pm |
*slaps forehead*
DOH! Guess I should read the documentation harder...
Thanks. |
|
|
|
|
|