Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landmarks #8

Open
shentino opened this issue Feb 10, 2020 · 1 comment
Open

Landmarks #8

shentino opened this issue Feb 10, 2020 · 1 comment

Comments

@shentino
Copy link

Apologies if this isn't in the correct location, but I just thought of a nifty idea.

Landmarks.

Tired of pesky paths causing your poor players to run in circles?

No more!

With this feature, you can designate a location as a landmark, and the code will leave breadcrumbs of a sort by spidering out a bit, perhaps djikstra style, to leave hints in nearby rooms on how to actually get to the landmark.

Perhaps some sort of primitive flood fill algorithm that steps out one node at a time, to a configurable maximum distance, and leaves little notes on the nodes as to which exit to take to get to the landmark.

Kudos to the original authors of the SIMud mudlib for implementing this on an X-Y geography grid with compass directions. It's less straigthforward than some taxicab geometry given the non-cartesian nature of the world used in RPGW, but it seems doable.

Caveats:

Make sure that the node you get going forward has a proper reverse exit leading back to where you came from so that one-way exits don't accidentally cause dead ends

Make sure that consistency is maintained. You wanna keep track of "hop count" to make sure that following the gingerbread crumbs actually does get you closer to the goal

inspirations:

RIP for routers.

@shentino
Copy link
Author

In a nutshell the mudlib version marks an outdoor location as a landmark, and any characters in the containing area are given the compass direction and a rough distance to travel to bring their character to said landmark. That's the cartesian version, my fancy is that RPG would have to do some sort of node-based method with distance metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant