How to test NPC Parser: Difference between revisions
Content deleted Content added
imported>MartinFuchs edit description |
imported>MartinFuchs mNo edit summary |
||
Line 11:
[[Image:npc parser testenv.png]]
You can launch the dialog
The dialog displays how the conversation parser interprets user input and gives a hint about not yet known words. You can choose one of the predefined example sentences or write your own text into the input field. This way you can design the NPC conversations and test how the parser reacts on user input. Currently the most important output for developers may be the "trigger" field in the right bottom of the upper "Sentence" section of the window. Looking at this you can see which trigger expression is evaluated from user input, word list and grammar rules. This is used for matching in the finit state machine.
Line 20:
if you use exact mathcing, it does not match.
You may also have a look into the [http://stendhalgame.org/hudson/job/stendhal_HEAD/javadoc/games/stendhal/server/entity/npc/parser/doc-files/ConversationParser.odp documentation of the NPC Conversation Parser].
[[Category:Stendhal]]
| |||