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


Joined: 07 Oct 2002
Posts: 46
Location: USA

PostPosted: 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)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Tigger
Novice


Joined: 07 Oct 2002
Posts: 46
Location: USA

PostPosted: 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.
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