|
coopoo18 Newbie
Joined: 08 Oct 2003 Posts: 2 Location: USA
|
Posted: 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? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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. |
|
|
|
coopoo18 Newbie
Joined: 08 Oct 2003 Posts: 2 Location: USA
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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'} |
|
|
|
|
|