Stendhal Quest Coding - Part 2: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Kymara
Line 76: Line 76:
As you can see, we now have to use "add()" instead of "addReply()" and that method has a lot more parameters.
As you can see, we now have to use "add()" instead of "addReply()" and that method has a lot more parameters.


We have predefined a number of states in the class [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/entity/npc/ConversationStates.java?view=markup ConverstationStates] that you can and should use.
We have predefined a number of states in the class [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/entity/npc/ConversationStates.java?view=markup ConversationStates] that you can and should use.


There is one last thing that makes your life easier: If you are using Linux, have the graphviz package installed and you are an admin in game, you can select "View Transitions" in the right click menu of NPCs. This will generate an image of the current transition graph very similar to the images above.
There is one last thing that makes your life easier: If you are using Linux, have the graphviz package installed and you are an admin in game, you can select "View Transitions" in the right click menu of NPCs. This will generate an image of the current transition graph very similar to the images above.