Stendhal Quest Coding: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Devant m fixed grammar/typo |
imported>Devant m added named constants for ConversationStates |
||
| Line 143: | Line 143: | ||
The first set of rules about states is that: |
The first set of rules about states is that: |
||
* State 0 is always the initial state. |
* State 0 is always the initial state (''ConversationStates.IDLE''). |
||
* State 1 is the state where only one player can talk to NPC. Any other player that |
* State 1 is the state where only one player can talk to NPC (''ConversationStates.ATTENDING''). Any other player that tries to talk to NPC will only see the text set with addWaitMessage. |
||
* State -1 is used for jump from any state when the trigger is present. For example very helpful for bye keyword. |
* State -1 is used for jump from any state when the trigger is present (''ConversationStates.ANY''). For example very helpful for bye keyword. |
||
* States from 2 to 50 are reserved for Behaviours uses. |
* States from 2 to 50 are reserved for Behaviours uses. |
||
* States above 50 are free at your disposal. |
* States above 50 are free at your disposal. |
||