|
Tigger Novice
Joined: 07 Oct 2002 Posts: 46 Location: USA
|
Posted: Fri Oct 11, 2002 1:38 am
looking at every mob |
er how would I set up a button (or any other on off thing) to auto look at every mob in every room I walk into?
(need to find items that are placed at random on mobs) |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Oct 11, 2002 10:10 pm |
quote:
er how would I set up a button (or any other on off thing) to auto look at every mob in every room I walk into?
(need to find items that are placed at random on mobs)
First, you'll need some kind of trigger or set of triggers to match all the various messages that appear in your room description. On Dragon's Gate MUD, for example, it uses a single line that can include commas:
In the {room|area} is the 1st _______.
In the {room|area} are the 1st _______ and the 1st _______.
In the {room|area} are the 1st _______, the 2nd _______, and the 1st _______.
You can then run the looping code to look at each critter in these triggers.
You also need a trigger to correctly match the output containing the item you're looking for.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Tigger Novice
Joined: 07 Oct 2002 Posts: 46 Location: USA
|
Posted: Sat Oct 12, 2002 2:36 am |
well this is some sample mud output
You see a small bird here, chirping away.
You see a small bird here, chirping away.
You see a small bird here, chirping away.
You see a Solace watchman here watching over the people to make sure they are safe.
A small white mouse scampers past you.
You see a Solace watchman here watching over the people to make sure they are safe.
A small white mouse scampers past you. |
|
|
|
|
|