Stendhal Quest Coding - Part 3: Difference between revisions

Content deleted Content added
imported>Hendrik Brummermann
No edit summary
imported>Hendrik Brummermann
Line 45:
== Asking the player for the beer ==
 
Let's make it a bit easier for player to remember that they bought a beer in order to give it to Hayunn. Hayunn will notice the beer as soon as the player says "hi" and actively asks for it.
 
Therefore we add a new trigger for the GREETING_MESSAGE. There is an internal rule that transitions withwhich have a condition (that is true) are preferred over equal transitions without one. So our greeting transition is used instead of the normal one if the conditionplayer has the item and the quest is trueactive. Similar to the MultiAction there is an AndCondition which combines multiple elementary ones.
 
<source lang="java">