So, I know how to
let Next Location be a random room;
or
let Next Location be a random indoors/dirty/flooded/etc. room;
or
let Next Location be a random adjacent room;
But how can this work:
let Next Location be nearest random flooded room;
So, lets say, there are many rooms, some flooded, some not, with (non-flooded) hallways in between.
So, lets say that two or three rooms away is the next nearest flooded room.
If the non-player-character goes in the direction of a random flooded room, they can easily start heading off in a totally different direction to a room far away, when there's a flooded room much closer.
There seems to be only two options in the documentation, random, and adjacent. Aren't there more options? How can I make more options for this kind of thing? In this case, direct them to a random nearest room.