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
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Sun Jan 18, 2004 3:10 am   

changing the directory of a .path
 
Just wondering if there is any way of programmatically changing the directory of a path?

I know that paths are basically aliases in a different flavour so maby the [classname] attribute in then #alias parameter can be used somehow?

Thanks for any suggestions.

ADDED: Also while we're on the subject of paths, is there any way to turn off path recording after it's been turned on?

I find that using #mark only clears the 'path ahead:' and 'path behind' variables, but does not actually turn the path recording off.

So far, the only way ive been able to turn path recording off is by re-starting zmud.

Thanks again.

ADDED MORE:
Another question relating to paths.. is there any way of deleting them?
#unalias doesnt seem to work

At the moment im forced to use #rename <path> path_deleted
(actually im _trying_ to use this method, but i cant get it to work if <path> is a variable)

Much oblidged.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jan 18, 2004 9:46 am   
 
The last question is the only one I have an answer for.
You can delete paths from the Settings Editor. Just click the Paths button, select the path you want to get rid of, and click the Delete button.
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Sun Jan 18, 2004 10:23 am   
 
Thanks LightBulb but i was looking for a way of deleting them through an alias or a command.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jan 18, 2004 4:53 pm   
 
1. You can create a path in a different class using the / syntax. Example:
#PATH test/newPath

2. It appears that there is no way to turn it off.

3. There appaears to be no zMUD command to do this. However, you could use COM for this:
#VAR path {%session.GetPath("thePath", "classname")}
#CALL @path.DeleteObject
#VAR path ""

However, this appears to be broken in 6.66 (I don't know since what version), but it should be fixed in the next public version.
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Mon Jan 19, 2004 1:16 am   
 
What about renaming a path using a variable for the path name?
"#rename .MyPath MyPath_Deleted" seems to work fine from the command line, but if i use a variable to represent MyPath, it doesnt work.

Ive tryed various different methods, these are as follows:

temp=.MyPath
#rename @temp MyPath_Deleted
#rename {@temp} MyPath_Deleted
#rename <@temp> MyPath_Deleted

temp=Mypath
#rename .@temp MyPath_Deleted
#rename .{@temp} MyPath_Deleted
#rename .@{temp} Mypath_Deleted
#rename .<@temp> Mypath_Deleted

None of the above methods seem to work. Im really at a loss.
(Is there a function version of rename? If there is perhaps i can use that to get around this problem)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jan 19, 2004 12:07 pm   
 
#EXEC {%concat("#RENAME ", @temp, " MyPath_Deleted")}
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