Wishes: Difference between revisions

53 bytes added ,  22:47, 5 August 2020
m
→‎List of wishes: relink levenshtein distance
(wishes! rehaul!! (copied from User:Heladodebrownie/Sandbox/Wishes))
m (→‎List of wishes: relink levenshtein distance)
Line 22: Line 22:
Here wishes are sorted into headings based on what they do. Consider using the table of contents at the beginning of this article to jump to a topic of interest.
Here wishes are sorted into headings based on what they do. Consider using the table of contents at the beginning of this article to jump to a topic of interest.


Entering any input not covered by a more specific wish will perform a lexigraphic search (using a Levenshtein distance algorithm) on object blueprints, mutations, quests, and zones, and attempt the best match it can find.{{Code Reference|namespace=XRL|class=WishSearcher|method=SearchForWish}} Matching on an object blueprint spawns that object; matching on a mutation grants that mutation; matching on a quest begins that quest; and matching on a zone teleports to that zone.
Entering any input not covered by a more specific wish will perform a lexigraphic search (using a [https://en.wikipedia.org/wiki/Levenshtein_distance Levenshtein distance algorithm]) on object blueprints, mutations, quests, and zones, and attempt the best match it can find.{{Code Reference|namespace=XRL|class=WishSearcher|method=SearchForWish}} Matching on an object blueprint spawns that object; matching on a mutation grants that mutation; matching on a quest begins that quest; and matching on a zone teleports to that zone.


In the names of wishes, <code>&lt;</code> angle brackets <code>&gt;</code> indicate a blank to fill in and <code>[</code> square brackets <code>]</code> indicate an optional part.
In the names of wishes, <code>&lt;</code> angle brackets <code>&gt;</code> indicate a blank to fill in and <code>[</code> square brackets <code>]</code> indicate an optional part.