Squatting Monk wrote...
FunkySwerve wrote...
The NWNX function I mentioned is much simpler, but that isn't the stumbling block. Making sure that the pc can REACH the walkable location is.
He had actually said that didn't matter to him because he was going to be working on climbing, swimming, etc. scripts for those unreachable places. However, having to set all that up just to get the treasure map system working seems like far too much work for so little payoff (especially for a novice scripter).
Yes, I read that. It doesn't make it any less a stumbling block. Consider this: for any given walkable area, you must first determine if there is a walkable path to it. That, by itself, is an enormous undertaking, since you must at a minimum track it back to an area transition, while accounting for placeables. I'm honestly not sure how I would go about doing that. Then, if there isn't one, you must then determine if there is some other way of reaching that spot - such as a climbing rope, swimming, etc. That would ALSO be an enormous undertaking, since you would have to retrofit into your system every other system that offered a potential means of ingress to an otherwise unapproachable point - even fitting in one such system, like climbing, would present serious difficulties akin to finding the initial walkable path.
The only way I could think of that is remotely feasible would be to half-ass it, by adopting the assumption that any walkable spot in the mod will either be accessible or ruled out as a treasure spawning spot at some point in the future. You'd wind up hacking in edits for months or years as players stumbled upon new inaccessible treasures. Just not a great way to do things, when much simpler and semi-equivalent approaches are available.
Randomness mostly adds a sense of verisimilitude which is just as easily obtained by planting a sufficient number of pre-placed spots. That's actually the approach we adopted for our secret systems - pre-set spots, only a random selection of which are active on any given reset.
Funky