[CF-Devel] bug in magic ear/npc conversation code

Andreas Vogl andi.vogl at gmx.net
Tue Feb 20 19:35:10 CST 2001


When there is an "@match <text>" in a magic ear/npc,
the player must speak <text> to trigger the magic ear,
or get an answer from the npc.

There is a bug: The last letter (/character) spoken does
NOT get compared with the @match-string.
Example: When a magic ear contains "@match yes", I already
get a match for speaking "ye".
For "@match no", speaking a single 'n' is already sufficient.
E.g. when I say "certainly", I would get a match for "@match no",
since there is an 'n' in "certaiNly".
A match for single characters is impossible: "@match x" gets
triggered by anything I say.

Should be rather simple to fix *if* one is familiar with these
parts of the code.


Andreas V.

    
    


More information about the crossfire mailing list