How to test NPC Parser: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
No edit summary
imported>Kymara
explain that there are some other things you can check first for npc conversation problems
Line 8: Line 8:
After you designed a new NPC conversation, you have to implement it in the server code and test if the NPC understands all the user input like you planned. If you have not already looked at the guides for [[Stendhal NPC Coding]] and [[Stendhal Quest Coding]], these could be helpful.
After you designed a new NPC conversation, you have to implement it in the server code and test if the NPC understands all the user input like you planned. If you have not already looked at the guides for [[Stendhal NPC Coding]] and [[Stendhal Quest Coding]], these could be helpful.


If during testing you find that the NPC is not responding as you expect, one of the things you can check is that the NPC is correctly interpreting ''(parsing)'' what the player says.
If during testing you find that the NPC is not responding as you expect, you should first check that the flow of conversation states is correct. If you are using standard Producer, Buyer or Seller code, this is already likely correct. Otherwise, the [[Stendhal_Quest_Coding_-_Part_2#Ask_the_players_whether_they_will_do_the_quest|quest tutorial]] covers the theory and how to test it.


To support you in this process there is the NPC Conversation Parser Test Environment (PTE):
After the conversation states are confirmed correct, you can check is that the NPC is correctly interpreting ''(parsing)'' what the player says. To support you in this process there is the NPC Conversation Parser Test Environment (PTE):


[[Image:npc parser testenv.png]]
[[Image:npc parser testenv.png]]