|
technomage Beginner
Joined: 18 Jul 2002 Posts: 13
|
Posted: 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} |
|
|
|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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}} |
|
|
|
technomage Beginner
Joined: 18 Jul 2002 Posts: 13
|
Posted: Fri Nov 15, 2002 11:21 am |
thank you for you input
i will look into all possibilites |
|
|
|
|
|