kbTell: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix examples)
(Add information about locality)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2 |= Game name
| arma2 |Game name=


|1.00|= Game version
|1.00|Game version=
 
|arg= loc |arguments=
 
|eff= glob |effect=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Make the person tell to the receiver the sentence. See [[Conversations]] for more details. |= Description
| Make the person tell to the receiver the sentence. See [[Conversations]] for more details. |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


| person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] |= Syntax
| person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] |Syntax=


|p1= person: [[Object]] |= Parameter 1
|p1= person: [[Object]] |Parameter 1=


|p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] |= Parameter 2
|p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] |Parameter 2=


|p3= receiver: [[Object]] |= Parameter 3
|p3= receiver: [[Object]] |Parameter 3=


|p4= topicName: [[String]] |= Parameter 4
|p4= topicName: [[String]] |Parameter 4=


|p5= sentenceClass: [[String]] |= Parameter 5
|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. |= Parameter 6
* 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' |= Parameter 7
* [[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> |= Example 1
|x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> |Example 1=


|x2= <code>[[player]] [[kbTell]] [
|x2= <code>[[player]] [[kbTell]] [
BIS_HQ, {{codecomment|// to}}
BIS_HQ, {{codecomment|// to}}
"Airstrike", {{codecomment|// topic}}
"Airstrike", {{codecomment|// topic}}
"AirstrikeRequest", {{codecomment|// sentence}}
"AirstrikeRequest", {{codecomment|// sentence}}
["Team", {}, "Anvil", ["Anvil"]], {{codecomment|// argument 1}}
["Team", {}, "Anvil", ["Anvil"]], {{codecomment|// argument 1}}
["Location", {}, "Strelka", ["Strelka"]], {{codecomment|// argument 2}}
["Location", {}, "Strelka", ["Strelka"]], {{codecomment|// argument 2}}
true]; {{codecomment|// use radio}}
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> |= Example 2
</code> |Example 2=


| [[Nothing]] |= Return value
| [[Nothing]] |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]]  |= See also
| [[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 -->  
<dd class="notedate">Posted on may 02, 2010 - 13:33 GMT+1
 
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note"> Jezuro's helping topic on BIforum : [http://forums.bistudio.com/showthread.php?t=91875 link]
<!-- 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:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]]

Revision as of 01:47, 18 March 2019

-wrong parameter ("locargument") defined!--wrong parameter ("globeffect") defined!-
Hover & click on the images for description

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]:
  • argumentName: String
  • argumentValue: Code
  • argumentText: String
  • argumentSpeech: Array of Strings - each string is an already defined word in config.
forceRadio (Optional): Boolean, Number or String (last value of the array)
  • Boolean true/false to force use of radio
  • Number 1-10 to force use of custom radio channel
  • String name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND'
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

Notes

Bottom Section