|
Crossfire Server, Branches 1.12
R18729
|
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 obj::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 textNote that value can't contain spaces.