kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix examples) |
Lou Montana (talk | contribs) (Add information about locality) |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
|arg= loc |arguments= | |||
|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. |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] |= | | person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] |Syntax= | ||
|p1= person: [[Object]] | | |p1= person: [[Object]] |Parameter 1= | ||
|p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] | | |p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] |Parameter 2= | ||
|p3= receiver: [[Object]] | | |p3= receiver: [[Object]] |Parameter 3= | ||
|p4= topicName: [[String]] | | |p4= topicName: [[String]] |Parameter 4= | ||
|p5= sentenceClass: [[String]] | | |p5= sentenceClass: [[String]] |Parameter 5= | ||
|p6= argumentArray1toN (Optional): [[Array]] - [argumentName, argumentValue, argumentText, argumentSpeech]: | |p6= argumentArray1toN (Optional): [[Array]] - [argumentName, argumentValue, argumentText, argumentSpeech]: | ||
Line 26: | Line 30: | ||
* 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. |Parameter 6= | ||
|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' |Parameter 7= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> | | |x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> |Example 1= | ||
|x2= <code>[[player]] [[kbTell]] [ | |x2= <code>[[player]] [[kbTell]] [ | ||
BIS_HQ, | BIS_HQ, {{codecomment|// to}} | ||
"Airstrike", | "Airstrike", {{codecomment|// topic}} | ||
"AirstrikeRequest", | "AirstrikeRequest", {{codecomment|// sentence}} | ||
["Team", {}, "Anvil", ["Anvil"]], | ["Team", {}, "Anvil", ["Anvil"]], {{codecomment|// argument 1}} | ||
["Location", {}, "Strelka", ["Strelka"]], {{codecomment|// argument 2}} | ["Location", {}, "Strelka", ["Strelka"]], {{codecomment|// argument 2}} | ||
true]; | true]; {{codecomment|// use radio}} | ||
{{codecomment| | {{codecomment| | ||
// bikb reference: | // bikb reference: | ||
Line 52: | Line 56: | ||
class Arguments | class Arguments | ||
{ | { | ||
class Team { type {{=}} "simple"; }; | class Team { type {{=}} "simple"; }; | ||
class Location { type {{=}} "simple"; }; | class Location { type {{=}} "simple"; }; | ||
}; | }; | ||
};*/}} | }; | ||
<nowiki>*/</nowiki>}} | |||
</code> | | </code> |Example 2= | ||
| [[Nothing]] | | | [[Nothing]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | | | [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |See also= | ||
}} | }} | ||
Line 68: | Line 72: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
Line 76: | Line 78: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] | [[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] |
Revision as of 00:47, 18 March 2019
Description
- Description:
- Make the person tell to the receiver the sentence. See Conversations for more details.
- Groups:
- Uncategorised
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 // bikb reference: /* 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"; }; }; }; */
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