• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - Distance to map edge

Is there a way to tell how far away a char is from an edge? I know the spawn search has LineOfSight, which must evaluate map geometry in some way. I've gone over commands and properties to the best of my ability but don't see anything exposed that might tell me any map properties.

For example, given a direction, what is the distance to the nearest edge. Thanks for humoring me.
 
the problem with that, is that generally geometry is much smaller than a zone boundary, take a look at zones in meshgen and you will see what i mean.

the entire thing is the zone, but we are placed where the zone designer wanted us, and then geometry is where he wanted it, so i dont think its possible.
 
I had an idea...MQ2Nav computes turns. If I have LOS there shouldn't be any turns. If there were a turn then It could return a distance. This doesn't totally provide what I want but I know the data is there... like anything else though, I probably need to write it and if the devs want to incorporate it that's their prerogative.
 
well, i believe mq2nav computes the least "weight" to get from point a to point b, so turns and whatnot are going to vary by cell size, and weighted areas, etc
 
as sic says, nav works on vectors i thinks they called, so meshatable area is basically one big ass web of vectors, and nav simply calculates the shortest distance between 2 vectors, by examining the web until it ges to where its going.

even if youhave los you cant be certain there wont be course corrections, example:


1623536454195.png
you would have los between those two points, but mesh needs to correct its course to move around
 
Question - Distance to map edge

Users who are viewing this thread

Back
Top
Cart