(info) This AI is still in early stages of development.

chat.isActive()

Determine conversation state for a specific player.

 

Syntax

chat.isActive(player);

Parameters

ParameterTypeMandatoryNotesChat Ver
playerNumber(tick)

The ID of the player to check.

0.1

Return Values

ValueTypeNotesChat Ver
<error>ErrorParameters specified were invalid (see error message for details).0.1
trueBooleanYes, we have an active conversation with this player.1.0
falseBooleanNo, we don't currently have an active conversation with the player.1.0

Example

Start a conversation with player 4
chat.start(3, myConvHandlerFn, 10000);
 
chat.isActive(3); // true
 
chat.stop(3);
 
chat.isActive(3); // false
 
chat.extend(3, 10000); // give them another 10 seconds
 
chat.isActive(3); // true
Availability BETA

Requires:

Contents

Jump to:

Chat API

Topics: