Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Find Nearest Entity (Give me a tile, I want a room)
New Topic New Poll Post Reply
Poster Message
hyperme
Level: Smitemaster
Avatar
Rank Points: 1070
Registered: 06-23-2006
IP: Logged
icon Find Nearest Entity (0)  
To go with the shiny new Find Natural Target, it would be nice to have a command to find the nearest entity of a given type.

Nearestness is decided as so:

1. The entity with the lowest Chebyshev Distance* is nearest,
2. If there is a tie, choose the closest from the tied entities using Pythagorean Distance.
3. If there is a tie again, choose the most northwest entity from those tied.

*It could also be possible to choose between Chebyshev, Manhatten and Pythagorean distance, similarly Find Natural Target's targeting types.

____________________________
[Insert witty comment here]
Qzvlkx?

[Last edited by hyperme at 11-18-2015 09:01 PM]
11-08-2015 at 08:51 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Find Nearest Entity (Give me a tile, I want a room)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.