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

chat.extend()

Extend the "Time to Live" of the most recent conversation with a player.

 

Syntax

chat.extend(player, ttl);

Parameters

ParameterTypeMandatoryNotesChat Ver
playerNumber(tick)

The ID of the player whose conversation will be extended.

0.1
ttlNumber(error)

Time To Live (TTL) specified in milliseconds.

Default: 15000

0.1

Return Values

ValueTypeNotesChat Ver
<error>ErrorParameters specified were invalid (see error message for details) or the Conversation Handler Function for the player is missing or invalid.0.1
<cdo>Conversation Descriptor Object

If the conversation was extended successfully, it's CDO will be returned.

0.1

Example

Extend conversation with player 4
// conversation with player 4 will be extended for 15 seconds from current time
chat.extend(4);
The CDO associated with the player must have a valid Conversation Handler Function before a conversation can be extended.
Availability BETA

Requires:

Contents

Jump to:

Chat API

Topics: