kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|gr1= Conversations | |gr1= Conversations | ||
|1.00 | |1.00 | ||
|arg= loc |arguments= | |arg= loc |arguments= | ||
Line 13: | Line 13: | ||
|eff= glob |effect= | |eff= glob |effect= | ||
| Make the person tell to the receiver the sentence. See [[Conversations]] for more details. | | Make the person tell to the receiver the sentence. See [[Conversations]] for more details. | ||
|pr= Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. [[radioChannelCreate|Custom channels]] are considered as one channel for this matter. |Problem= | |pr= Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. [[radioChannelCreate|Custom channels]] are considered as one channel for this matter. |Problem= | ||
| person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] | | person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
|p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] | |p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] | ||
|p3= receiver: [[Object]] | |p3= receiver: [[Object]] | ||
|p4= topicName: [[String]] | |p4= topicName: [[String]] | ||
|p5= sentenceClass: [[String]] | |p5= sentenceClass: [[String]] | ||
|p6= argumentArray1toN (Optional): [[Array]] - [argumentName, argumentValue, argumentText, argumentSpeech]: | |p6= argumentArray1toN (Optional): [[Array]] - [argumentName, argumentValue, argumentText, argumentSpeech]: | ||
Line 33: | Line 33: | ||
* argumentValue: [[Code]] | * argumentValue: [[Code]] | ||
* argumentText: [[String]] | * argumentText: [[String]] | ||
* argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in config. | * argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in config. | ||
|p7= forceRadio (Optional): [[Boolean]], [[Number]] or [[String]] (''last value of the array'') | |p7= forceRadio (Optional): [[Boolean]], [[Number]] or [[String]] (''last value of the array'') | ||
* [[Boolean]] true/false to force use of radio | * [[Boolean]] true/false to force use of radio | ||
* [[Number]] 1-10 to force use of custom radio channel | * [[Number]] 1-10 to force use of custom radio channel | ||
* [[String]] name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND' | * [[String]] name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND' | ||
|x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> | |x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> | ||
|x2= <code>[[player]] [[kbTell]] [ | |x2= <code>[[player]] [[kbTell]] [ | ||
Line 61: | Line 61: | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|x3= <code>[[player]] [[kbTell]] [ | |x3= <code>[[player]] [[kbTell]] [ | ||
Line 68: | Line 68: | ||
"AirstrikeRequest", {{cc|sentence}} | "AirstrikeRequest", {{cc|sentence}} | ||
["argumentName", argumentValue], {{cc|argument 1}} | ["argumentName", argumentValue], {{cc|argument 1}} | ||
true]; {{cc|use radio}}</code> | true]; {{cc|use radio}}</code> | ||
| [[Nothing]] | | [[Nothing]] | ||
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | | [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | ||
}} | }} |
Revision as of 01:06, 18 January 2021
Description
- Description:
- Make the person tell to the receiver the sentence. See Conversations for more details.
- Problems:
- Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. Custom channels are considered as one channel for this matter.
- Groups:
- Conversations
Syntax
- Syntax:
- person kbTell [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)]
- Parameters:
- person: Object
- [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: Array
- receiver: Object
- topicName: String
- sentenceClass: String
- argumentArray1toN (Optional): Array - [argumentName, argumentValue, argumentText, argumentSpeech]:
- forceRadio (Optional): Boolean, Number or String (last value of the array)
- Return Value:
- Nothing
Examples
- Example 1:
player kbTell [BIS_HQ, "myTopic", "playerSentence1"];
- Example 2:
player kbTell [ BIS_HQ, // to "Airstrike", // topic "AirstrikeRequest", // sentence ["Team", {}, "Anvil", ["Anvil"]], // argument 1 ["Location", {}, "Strelka", ["Strelka"]], // argument 2 true]; // use radio
in given .bikb:class AirstrikeRequest { text = "%team requesting close air support at grid %location "; speech[] = { %Team, RequestingCloseAirSupportAtGrid, %Location }; class Arguments { class Team { type = "simple"; }; class Location { type = "simple"; }; }; };
- Example 3:
player kbTell [
BIS_HQ, // to "Airstrike", // topic "AirstrikeRequest", // sentence ["argumentName", argumentValue], // argument 1
true]; // use radio
Additional Information
- See also:
- ConversationskbAddTopickbHasTopickbReactkbRemoveTopickbAddDatabasekbAddDatabaseTargetsFSMFSM Editor
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