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
Medakan
Novice


Joined: 15 Dec 2015
Posts: 41
Location: Seattle

PostPosted: Fri May 19, 2017 1:45 am   

More than one ALIAS with same name
 
Through testing I have found that zMUD won't call more than one instance of an ALIAS. This is even the case with the special ALIAS atconnect, atdisconnect, ect... Anyone have any work arounds or alternative ideas?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Fri May 19, 2017 2:39 am   
 
True, even in CMUD.
I believe it calls the first instance of the alias it finds.
Disabling the class it is in will prevent a given alias from being found. (#T-)

Alternatively, combine them all into one alias, and let #IFs and/or @variables define which action is performed.
_________________
Discord: Shalimarwildcat
Reply with quote
Medakan
Novice


Joined: 15 Dec 2015
Posts: 41
Location: Seattle

PostPosted: Fri May 19, 2017 9:57 am   
 
shalimar wrote:

Alternatively, combine them all into one alias, and let #IFs and/or @variables define which action is performed.


If it was just for me no problem, just not as easy for the people I share this stuff with. Not all of them are going to want to run everything as I was trying to make each individual script stand alone.

Hrmm... back to the drawing board.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Fri May 19, 2017 8:19 pm   
 
If you upgrade to CMUD you could do this with #EVENTs.
Which are essentially aliases without a command word.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Fri May 19, 2017 8:31 pm   
 
But otherwise.... instead of having a trigger fire off the alias, (or #RAISE an #EVENT in CMUD) just have it fire off the code the alias would store.
_________________
Discord: Shalimarwildcat
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