Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Sun Nov 22, 2009 4:23 pm
[312B] Path generation bug |
This problem I found using %pathfrom, but I assume it also applies to %pathreverse.
If I happen to be in a room with a customized exit ("other" exit accessed via a conventional direction), that is, I am using N to generate enter portal for example, and I then want to go to a room which contains in its speedwalk (from the current room) the substring .(open n);n, %pathfind will generate the following substring: .(open n);enter portal. This will result, obviously, in the wrong path being created. To summarize, %pathfind is erroneously substituting directions downstream as if the were immediately away from the current room.
Schematically:
$sw = %pathfind(X,Y)
$sw will contain, for the first interim Y that contains the string pattern shown above (the cardinal direction can be any of the 6), a substituted customized exit as if the interim Y were X.
If there are multiple customized exits at X, only the first one in the exit list will be invalidly substituted, the others will be correctly generated. |
|