|
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: 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?
|
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: 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) |
|
|
|
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: 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? |
|
|
|
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: 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
|
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: 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 |
|
|
|
|
|
|
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
|
|