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


Joined: 18 Jul 2002
Posts: 13

PostPosted: Thu Nov 14, 2002 2:21 pm   

global aliases and zone aliases
 
is it possible that i have aglobal alias let say called reca
#alias reca {recall;#recall}
and for some zones an alias with same name but eith different content?
like in the zone there the recal point is would be
#alias {#walk CC}
Reply with quote
Killfile
Novice


Joined: 30 Sep 2002
Posts: 32
Location: USA

PostPosted: Thu Nov 14, 2002 4:03 pm   
 
Theres a few ways you could do this. One would be using the %zonename() or %zonenum() function as part of a conditional...

#IF (%zonename() = "In Town") {
RECALL;
#RECALL;
}
#IF (%zonename() = "The Dark Forest") {
#WALK Exit
}


The other way (which might be more foolproof) is to declare aliases etc in the scripts section of your zone properties. I would recomend using a standardized format (i.e. reuse the same name over and over again) so that you can delete and then redeclare.

--Killfile
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Nov 14, 2002 10:58 pm   
 
If memory serves the map script, and zone script are put into the same class. In which case zone changes would overwrite the map alias, but I am not sure as to whether it would recreate the map script alias when there is no zone script version. Also I do not know which order they would be created when the mapper is opened. You could always just try it and see.

As an alternate method, create a record variable with all the special case zones and the commands for them. Then use this alias:
#ALIAS reca {#IF (%db(@RecordVariable,%zonename())!=%null) {#EXEC %db(@RecordVariable,%zonename())} {recall;#RECALL}}
Reply with quote
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Fri Nov 15, 2002 11:21 am   
 
thank you for you input
i will look into all possibilites
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