Stendhal Quest Coding: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann decreased indent |
imported>Hendrik Brummermann →Trigger phrases: spelling |
||
| Line 101: | Line 101: | ||
== |
== Commonly used conversation phrases == |
||
Good, Hayunn now replies to the trigger "quest". He does not, however, reply to "task". All other NPCs accept both words as synonym. A simple solution would be to add a second ''npc.addReply'' line. But there is a better way which makes it very easy to add additional synonyms later. We predefined lists of commonly used [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/entity/npc/ConversationPhrases.java?view=markup ConversationPhrases]. |
Good, Hayunn now replies to the trigger "quest". He does not, however, reply to "task". All other NPCs accept both words as synonym. A simple solution would be to add a second ''npc.addReply'' line. But there is a better way which makes it very easy to add additional synonyms later. We predefined lists of commonly used [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/entity/npc/ConversationPhrases.java?view=markup ConversationPhrases]. |
||
| Line 119: | Line 119: | ||
</source> |
</source> |
||
Please compile and restart your server. Hayunn should |
Please compile and restart your server. Hayunn should now respond to "quest", "task", and "favor", after you started the talk by saying "hi". |
||
== Blue trigger words == |
|||
{{TODO| |
{{TODO| |
||
| Line 125: | Line 127: | ||
* #beer |
* #beer |
||
}} |
}} |
||
== Second Part of this Tutorial == |
== Second Part of this Tutorial == |
||