Stendhal Quest Coding: Difference between revisions

Content deleted Content added
imported>Hendrik Brummermann
decreased indent
imported>Hendrik Brummermann
Line 101:
 
 
== TriggerCommonly 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].
Line 119:
</source>
 
Please compile and restart your server. Hayunn should notnow respond to "quest", "task", and "favor", after you started the talk by saying "hi".
 
== Blue trigger words ==
 
{{TODO|
Line 125 ⟶ 127:
* #beer
}}
 
 
== Second Part of this Tutorial ==