Stendhal Quest Coding: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann Teaching the NPC to talk |
imported>Kymara finish an unfinished sentence and correct a typo. add another suggestion to teach |
||
Line 68:
</source>
Of course in the case of this tutorial the two lines for BeerForHayunn are
== Teaching the NPC to talk ==
Line 74:
Okay, we have now completed the preparation. Our first task is to get Hayunn to reply to the word "quest".
Therefore we add a new method called prepareQuestStep() at the end of the file BeerForHayunn, just above the last closing "}". This method
<source lang="java">
Line 104:
* #beer
* using predefined trigger sets like YES_MESSAGES
Please make sure this works before advancing to the next section of this tutorial:
| |||