![]() |
Crossfire Server, Trunk
1.75.0
|
The dialog system used by NPCs and magic ear works in the following way:
The core dialog is in communicate().
When a player talks, there are two cases:
This enables special things like 'Player asks: What is this?'.
The following tags can be used in the object::msg field:
@match xxx introduces a dialog message. xxx can be either '*' or a regexp, with | to separate alternatives@reply value text is one possible reply the player can give to the message. value is what the player should say (using say value), test is what will be actually displayed@question value text is the same as @reply except the player will ask text@identify Identifies the speaker when the message containing it is matchedNote that value can't contain spaces.