How to test NPC Parser: Difference between revisions

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:
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, oneyou ofshould first check that the thingsflow youof canconversation checkstates is thatcorrect. theIf NPCyou are using standard Producer, Buyer or Seller code, this is correctlyalready interpretinglikely ''(parsing)''correct. whatOtherwise, the player[[Stendhal_Quest_Coding_-_Part_2#Ask_the_players_whether_they_will_do_the_quest|quest tutorial]] covers the theory and how to test saysit.
 
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]]