This command allows the player to interact with NPCs by responding to their conversations.

If the player isn’t currently engaged in a conversation, then the input is echoed.

extends:
core.WObject

implements:
parser.commands.Command;

package: parser.commands;

Contents

Constructors

Say(String name, String description)

Create a new say command with the given name and description help text.

Methods

void invoke(String[] parts, Player p, Map m)

Takes the user’s input and tries to match it against an NPCs conversation options. If a match is found, the next conversation is initiated.
If one isn’t found, then this method echoes out the user input to the console.

boolean equals(String name)

True if this command’s name equals name; false otherwise.