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
coopoo18
Newbie


Joined: 08 Oct 2003
Posts: 2
Location: USA

PostPosted: Wed Oct 08, 2003 1:28 am   

aliases able to read elsewhere?
 
is there some way to get an alias command to read somewhere other than the first word?
like...
cat = (alias) dog has a big nose and

typed = my cat smells
seen on mud = my dog has a big nose and smells

the alias is the second word... is there some way to tell the mud to read it when it is the second word?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 08, 2003 2:45 am   
 
You can use an #ONINPUT trigger for this. To do exactly what you asked for this should work:
#ONINPUT {cat} {#SUB {dog has a big nose and}} "" {notrig}

Note the NOTRIG option is used to prevent this trigger from refiring itself if you create it in such a fashion that it might. The example wouldn't be plagued by that problem, but I have not put that option on and found out just how stupid I can be before.
Reply with quote
coopoo18
Newbie


Joined: 08 Oct 2003
Posts: 2
Location: USA

PostPosted: Wed Oct 08, 2003 7:31 am   
 
that would work, but i was thinking to try and save time, say like, i wanted to cast a spell, and so i have to type
cast '(spell)'
and that (spell) could be many different things
ex
cast 'protection from fire' looks like c pff
and
cast 'protection from good' looks like c pfg
is there anyway to do it so that the second alias is read along with the first?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 08, 2003 8:39 am   
 
You don't need an alias for cast. Just include it in the spell aliases.
#AL pff {cast 'protection from fire'}
#AL pfg {cast 'protection from good'}
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