---
name: "kbAddTopic"
type: command
status: ok
groups: ["Conversations"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/kbAddTopic
revid: 353355
updated: 2024-03-15T17:11:55Z
---

# kbAddTopic

*Command · Conversations · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **local** · effect **local**

## Description

Register conversation topic to given person. See Conversations for more details.

> [!NOTE]
> Only the speaker(s) need to have the topic added.

## Syntax

```sqf
person kbAddTopic [topicName, conversationFile, fsmFile, eventHandler]
```

**Parameters:**

- `person`: [Object](../topics/Object.md)
- `topicName`: [String](../topics/String.md) - the topic id for further reference
- `conversationFile`: [String](../topics/String.md) - .bikb file path
- `fsmFile`: [String](../topics/String.md) - (Optional) .fsm file path. Receives the following parameters:
  - **_sentenceId:** the sentence as defined in the .bikb file
  - **_topic:** TopicName registered via kbAddTopic
  - **_this:** the person that was talked to (receiver)
  - **_from:** the person that talked to the receiver and triggered the script
- `eventHandler`: [Code](../topics/Code.md) or [String](../topics/String.md) - (Optional) code to execute - given String will be [compile](../commands/compile.md)d. This is **not** an sqf file path.

  Parameters: identical to *fsmFile* - see above.

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player kbAddTopic ["myTest", "myTest.bikb", "myTest.fsm", compile preprocessFileLineNumbers "myTest.sqf"];
```

### Example 2

```sqf
player kbAddTopic ["itsGettingWarm", "weatherTalk.bikb"];
```

## See also

Conversations · [kbHasTopic](../commands/kbHasTopic.md) · [kbTell](../commands/kbTell.md) · [kbWasSaid](../commands/kbWasSaid.md) · [kbReact](../commands/kbReact.md) · [kbRemoveTopic](../commands/kbRemoveTopic.md) · [kbAddDatabase](../commands/kbAddDatabase.md) · [kbAddDatabaseTargets](../commands/kbAddDatabaseTargets.md) · FSM · FSM Editor

<sub>Source: [BI Community Wiki — kbAddTopic](https://community.bistudio.com/wiki/kbAddTopic) (revision 353355).</sub>
