I suggest looking for tracking code. Use it to better suit what your
trying to do. After all, the tracking code does pretty much exactly what
you want in reguards as to "breaking" line of sight searching. I can't
offer a good example code or coder, but I can say that's probly a good
start.

Also, if you havn't thought of it yet, probly the best way to say they
are "southeast"(referring to ur excellent art work ;) ), keep track how
many times they go in each direction and compare it to it's opposite. So
you'd have 3s minus 1n, which is 2s, which is definitely south. If you
get my drift.

Ok, hope this helps.

Rheede



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charon
> Sent: Tuesday, January 07, 2003 4:13 PM
> To: [email protected]
> Subject: New where command (Room Distance, Room Radius)
> 
> 
> Greetings,
> 
> I got a new idea for a where command where you are only able 
> to scan the surrounding rooms for a character. Though as 
> usual I've occured a problem.
> :)
> 
> What I want is a where command which scans all directions 
> from the character and a 5 room radius from the character.
> 
> |        X       |
> |        |        |
> |        |       Y
> ---- ---- ---- ----
> |        |        |
> |        |        |
> |        |        |
> 
> Ok I know this is an ugly map, anyway if X types where, I 
> want Y to show up on where with an output to look something like this:
> 
> Players around you:
> Y is not far away to the southeast.
> 
> The directions would be s,s,e,e,n. Which is 5 directions away 
> from the character and the maximum my where would tolerate. 
> This idea is pretty much inspired on the stock scan command 
> but what the stock scan command can't do is to locate players 
> which break into another direction from one path. I do not 
> wish to add more directions to the MUD either, I do not like 
> southeast directions, but when describing location it's fine 
> to say southeast. :)
> 
> Any ideas to possible do this would be very welcome.
> - Charon


Reply via email to