How to test NPC Parser: Difference between revisions
imported>MartinFuchs mNo edit summary |
imported>MartinFuchs mNo edit summary |
||
| Line 12: | Line 12: | ||
[[Image:npc parser testenv.png]] |
[[Image:npc parser testenv.png]] |
||
You can launch it with the script runpte.sh or runbte.bat on windows. This will compile the server and tools part, then launch the java dialog |
|||
It may be even easier to run it from Eclipse by launching the class games.stendhal.tools.npcparsertestenv.TestEnvDlg . |
|||
It says that buy 3,000 cookie matches buy 3 cookies |
|||
yes this matches when using the standard mathing method the expressions match, the njumber is just an attribute. |
|||
if you use exact mathcing, it does not match. |
|||
Currently the most important output field for developers may be the "trigger" field. |
|||
Looking at this you can see which trigger expression is used in the state machine. |
|||
Revision as of 19:45, 11 December 2010
Stendhal Quests
After you designed a new NPC conversation, you have to implement it in the server code and test if the NPC understands all user input like you planed.
You can launch it with the script runpte.sh or runbte.bat on windows. This will compile the server and tools part, then launch the java dialog
It may be even easier to run it from Eclipse by launching the class games.stendhal.tools.npcparsertestenv.TestEnvDlg .
It says that buy 3,000 cookie matches buy 3 cookies yes this matches when using the standard mathing method the expressions match, the njumber is just an attribute. if you use exact mathcing, it does not match.
Currently the most important output field for developers may be the "trigger" field. Looking at this you can see which trigger expression is used in the state machine.
