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
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Fri Apr 09, 2004 7:01 pm   

pathfrom
 
im trying to use the pathfrom fuction, so i enter %pathfrom(3511,3616) into the command line, but i just get a message of no such history command instead of the path from room to room, any help?
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Fri Apr 09, 2004 7:54 pm   
 
Probably because you dont have expand vars checked in preferences but just do this.

#EXEC %pathfrom(x,x)
Reply with quote
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Fri Apr 09, 2004 8:11 pm   
 
yeah, you were right about the expand part, but i messed with it a little and found out more about functions, i did #FUNC ptest %pathfrom(3511,3616) then #show @ptest to show me what it is, but i was wondering how to incorporate this into an alias. i tried this alias: findpath, with commands #FUNC ptest %findpath( %1, %2);#SHOW @ptest
but the problem is that when i enter findpath 3511 3616 into the command line, the ptest goes to %findpath( 3511, 3616 ), any ideas on how to format this to work?
Reply with quote
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Fri Apr 09, 2004 8:12 pm   
 
forget it, im a dumbass and forgot that the function ws called pathfrom, i put the name of my alias in place of pathfrom :P
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Fri Apr 09, 2004 8:54 pm   
 
quote:
Originally posted by chris74269

yeah, you were right about the expand part, but i messed with it a little and found out more about functions, i did #FUNC ptest %pathfrom(3511,3616) then #show @ptest to show me what it is, but i was wondering how to incorporate this into an alias. i tried this alias: findpath, with commands #FUNC ptest %findpath( %1, %2);#SHOW @ptest
but the problem is that when i enter findpath 3511 3616 into the command line, the ptest goes to %findpath( 3511, 3616 ), any ideas on how to format this to work?



Just so you know you dont have to do the #FUNC, thats for creating your own function , %pathfrom is a predefined function. So in short you could do..
Code:

#alias showmypath {#show %pathfrom(%1,%2)}


Jesse
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