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
metroiceberg
Beginner


Joined: 19 Feb 2004
Posts: 18
Location: USA

PostPosted: 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?
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Wed Oct 18, 2006 7:35 pm   
 
#alias {fd} {fish %-1;#var fishdir %-1;#var swimdir %reversedir(%-1)}
Reply with quote
metroiceberg
Beginner


Joined: 19 Feb 2004
Posts: 18
Location: USA

PostPosted: Wed Oct 18, 2006 8:51 pm   
 
*slaps forehead*


DOH! Guess I should read the documentation harder...

Thanks.
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