Setting up aliases

Posted by Aarent on Sat 09 Jun 2001 08:46 AM — 12 posts, 40,714 views.

#0
First off, with alias' why is it that I can't have an alias on the mud, and from the client at the same time?

Also, is it possible to have a trigger that allows me to have just a few triggers that cover a variety of topics instead of one for each?
For instance right now on the main mud I play on when I sacrifice a corpse and get the items from it, I have to have a trigger for each item to put that item in a bag (in other words, I have /a lot/ of triggers set up for that mud). I was just wondering if there's someway to just be able to cut down the amound of triggers I need.

Lastly, for some reason MUSHclient is overriding the chanel colors. So instead of haveing a WHITEaarentRED<newbie>WHITE message, I just have BLUE aarent<newbie>message.
Is there any way for me to have it so I see the real colors?

Aarent
Australia Forum Administrator #1
Quote:

First off, with alias' why is it that I can't have an alias on the mud, and from the client at the same time?


If the alias is the same word then the client doesn't know whether or not to pass it to the MUD, so you need to choose a different word. I usually choose a short one, eg.

GFB = Get Food Bag

Quote:

Also, is it possible to have a trigger that allows me to have just a few triggers that cover a variety of topics instead of one for each?


Yes, you shouldn't need lots of triggers. Can you give an example of what you are doing so I can better suggest a solution?

Quote:

Lastly, for some reason MUSHclient is overriding the chanel colors.


Earlier versions of MUSHclient automatically added a couple of triggers, which would colour your chat channels. Go into the triggers configuration and remove any that you didn't put there yourself, or change the colour in them to "no change" and the problem will go away.

The most recent version doesn't do that.





#2
Ok, basically I have oogles of triggers for putting items in a bag of holding. When I find an exping area I like, I go and make triggers for all the items in the area. That takes a long time and kinda sucks.
So, I have a bunch of put blah blah blah in bag triggers.

Aarent
Australia Forum Administrator #3
Do you mean triggers or aliases?

Sounds like an alias when you say "put blah in bag".

Can you give a couple of actual examples? Like paste exactly what you have into the message.

You can probably do it with a wildcard or two, but I really need to see what you are attempting.
#4
You loot a blacksmith's hammer from the corpse.
put hammer in bag

That's what I'm doing. I've heard people talk about having just a few triggers and having those be able to take care of all the various items so they always put it in a bag but they used a different client. So I just wanna know how to make a few tiggers that let me get the loot and put it in a bag w/o having to make a new trigger for that item.

Aarent
Australia Forum Administrator #5
I think you mean alias here. An alias matches on what you type, a trigger matches on what comes from the MUD.

To make an alias to handle all sorts of things like this, go to world configuration (Ctrl+G), click on Input -> Aliases.

Then click on "Add", and fill in:



Alias: GET *
Send: get %1 corpse
      put %1 in bag



Then click on OK to save the alias and OK again to close the configuration window.

Notice I typed GET in upper-case so it isn't confused with any "get" that the MUD might use. Then when you finish a fight, you type:


GET hammer


Because the alias has a wildcard (*) then the word "hammer" matches the wildcard, and it sends:


get hammer corpse
put hammer in bag


Then you can type "GET sword" and so on. So you don't need to make one for each item.
Amended on Mon 11 Jun 2001 10:38 PM by Nick Gammon
#6
What I have set up now is an alias on the mud (f - sacrifice corpse) that sacs the corpse and then when I get the loot I have the countless triggers set to put the stuff in the bag.

Aarent
Australia Forum Administrator #7
Doesn't the MUD have an "auto loot" command?

Anyway, to help you write the triggers I really need to see an example of the actual output. Just copy the lines from the screen after the mob dies, from where it dies onwards (including where you sac it), so I can see what the trigger has to match on.
#8
This is what I do:
The wingblade wisps through the air with great speed as it slices deeply
into Soldier!

>>>You cut Soldier in the left leg with your wingblade.
>>>You slice Soldier in the right arm with your wingblade.
>>>You slice Soldier horribly in the left foot with your wingblade.
>>>You slice Soldier horribly in the right arm with your dragon slayer.
You feel more experienced from the kill.

Soldier drops dead before you.
Soldier removes his gloves.
Soldier removes his vest.
Soldier unwields a silver staff (wielded).
f //f is my alias to sacrifice corpse
You look over the corpse and take everything of value.

The pile of coins contained:
gold 35, silver 27
You loot a silver staff from the corpse.
put staff in bag //trigger to put staff in bag
You loot buckskin vest from the corpse.
put vest in bag //trigger to put vest in bag
You loot a pair of buckskin gloves from the corpse.
put gloves in bag //trigger to put gloves in bag
You loot a buckskin shield from the corpse.
put shield in bag //trigger to put shield in bag
Raising your hands to the air, the gods take your sacrifice and reward you.
1385 hps|680 sp|875 mp > You put a silver staff into KilRoy's bag of holding.
1385 hps|680 sp|875 mp > You put buckskin vest into KilRoy's bag of holding.
1385 hps|680 sp|875 mp > You put a pair of buckskin gloves into KilRoy's bag of holding.
1385 hps|680 sp|875 mp > You put a buckskin shield into KilRoy's bag of holding.


Now, what I have to have a trigger for each new item I come across so I dont have to keep typing put blah in bag (which gets rather annoying while out hunting). For instance, I just started hunting in a new area and I had to take about half an hour to set up triggers for all the items around there. So, what I was wonder is: is there a way to have a set of triggers that would cover all items and automatically put them in a bag without having to add a new trigger for em?

Aarent
Australia Forum Administrator #9
Try doing it with a trigger, for example:


Match on: You loot * from the corpse.
Send: put '%1' in bag


So if you get:


You loot buckskin vest from the corpse.


It will send:


put 'buckskin vest' in bag


All automagically - you don't need to type anything. :)
Amended on Thu 21 Jun 2001 03:13 AM by Nick Gammon
#10
Niffty, also could that work for a situation like this:
I have a cleric set up with a paralyze spell trigger that's always just paralyze monster where the trigger is blah says: para.
Could I have it be
blah says: para *random monster name*
then it paras what they say by
blah says: para *
paralyze 1%

Aarent

(btw, thanks for all the help, I appriciate it)
Australia Forum Administrator #11
Yes, that should work the way you described it.