kbAddTopic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|") |
||
Line 12: | Line 12: | ||
| Register conversation topic to given person. See [[Conversations]] for more details. | | Register conversation topic to given person. See [[Conversations]] for more details. | ||
{{Informative | Only the speaker(s) need to have the topic added.}} | {{Feature | Informative | Only the speaker(s) need to have the topic added.}} | ||
| person [[kbAddTopic]] [topicName, conversationFile, fsmFile, eventHandler] | | person [[kbAddTopic]] [topicName, conversationFile, fsmFile, eventHandler] |
Revision as of 00:08, 7 February 2021
Description
- Description:
- Description needed
- Groups:
- Conversations
Syntax
- Syntax:
- Syntax needed
- Parameters:
- person: Object
- topicName: String - the topic id for further reference
- conversationFile: String - .bikb file path
- fsmFile: String - (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 or String - (Optional) code to execute - given String will be compiled. This is not an sqf file path.
Parameters: identical to fsmFile - see above. - Return Value:
- Return value needed
Examples
- Example 1:
player kbAddTopic ["myTest", "myTest.bikb", "myTest.fsm", compile preprocessFileLineNumbers "myTest.sqf"];
- Example 2:
player kbAddTopic ["itsGettingWarm", "weatherTalk.bikb"];
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note