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


Joined: 02 Nov 2002
Posts: 107
Location: Australia

PostPosted: Wed Jul 09, 2003 3:04 am   

alias question
 
Ok, here is what i want to do, but I've tried so many different ways and it just doesn't work so i'm beginning to think you just can't do it.

Ok, I have a few hundred aliases to speedwalk me to different areas. What I would like to do is be able to use the #prompt command so that i can update the speedwalk associated with an alias. I dunno if that explains it but...let me give an example

say i have an alias
#alias temple {run 2su}
what i would like to do is then have a command where i can go
#prompt temple
and whatever is put in the prompt goes into the temple alias so that if i typed in run 2sd the alias temple would look like
#alias temple {run 2sd}


so is this possible or not?
Thanks

also can we have the option back to be emailed when there is a reply to a topic :P
Reply with quote
Jah
Wanderer


Joined: 11 Oct 2000
Posts: 52
Location: Sweden

PostPosted: Wed Jul 09, 2003 3:11 am   
 
Well if you remake all aliases to like #alias temple {run [@temple]}
and use #prompt temple
Youd be set :)
Reply with quote
Carabas
GURU


Joined: 28 Sep 2000
Posts: 434
Location: USA

PostPosted: Wed Jul 09, 2003 4:01 am   
 
This should work.

#PROMPT updatealias "Which speedwalk path do you wish to update at this time?"
#PROMPT updatecommand "What is the speedwalk path to the destination?"
#EXEC {#ALIAS @updatealias {run @updatecommand}}

This will prompt you for two strings. The first being the the actual alias that you use (temple). The second being the path (without the run, just "2sd"). It will then execute the alias command, overwriting the existing alias (in theory).

Fortunately, this can also be used as an easy way to add new speedwalks Smile
Reply with quote
Carabas
GURU


Joined: 28 Sep 2000
Posts: 434
Location: USA

PostPosted: Wed Jul 09, 2003 4:14 am   
 
Actually, if you make this an alias (update?), you could do it like this.

#PROMPT updatecommand "What is the new speedwalk path to the destination: %1"
#EXEC {#ALIAS %1 {run @updatecommand}}

update temple
2sd
Reply with quote
tbone235
Apprentice


Joined: 02 Nov 2002
Posts: 107
Location: Australia

PostPosted: Wed Jul 09, 2003 6:37 am   
 
thanks very much :) much better then the way i was doing it :)
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