kbTell: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add Conversations link & some fixes) |
Lou Montana (talk | contribs) m (Fix examples) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| person [[kbTell]] [receiver, topicName, sentenceClass, | | person [[kbTell]] [receiver, topicName, sentenceClass(, argumentArray1, argumentArray2, (…), forceRadio)] |= Syntax | ||
|p1= person: [[Object]] |= Parameter 1 | |p1= person: [[Object]] |= Parameter 1 | ||
|p2= [receiver, | |p2= [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, (…), forceRadio]: [[Array]] |= Parameter 2 | ||
|p3= receiver: [[Object]] |= Parameter 3 | |p3= receiver: [[Object]] |= Parameter 3 | ||
Line 20: | Line 20: | ||
|p4= topicName: [[String]] |= Parameter 4 | |p4= topicName: [[String]] |= Parameter 4 | ||
|p5= sentenceClass: [[String]] |= | |p5= sentenceClass: [[String]] |= Parameter 5 | ||
|p6= argumentName: [[String]] |= | |p6= argumentArray1toN (Optional): [[Array]] - [argumentName, argumentValue, argumentText, argumentSpeech]: | ||
* argumentName: [[String]] | |||
* argumentValue: [[Code]] | |||
* argumentText: [[String]] | |||
* argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in config. |= Parameter 6 | |||
|p7 | |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 | * [[String]] name of radio channel to use, from: 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND' |= Parameter 7 | ||
____________________________________________________________________________________________ | |||
|x1= <code>/ | |x1= <code>[[player]] [[kbTell]] [BIS_HQ, "myTopic", "playerSentence1"];</code> |= Example 1 | ||
{ | |x2= <code>[[player]] [[kbTell]] [ | ||
BIS_HQ, {{codecomment|// to}} | |||
{ | "Airstrike", {{codecomment|// topic}} | ||
"AirstrikeRequest", {{codecomment|// sentence}} | |||
["Team", {}, "Anvil", ["Anvil"]], {{codecomment|// argument 1}} | |||
["Location", {}, "Strelka", ["Strelka"]], {{codecomment|// argument 2}} | |||
true]; {{codecomment|// use radio}} | |||
{{codecomment| | |||
}; | // bikb reference: | ||
/* | |||
// | class AirstrikeRequest | ||
class | |||
{ | { | ||
class | text {{=}} "%team requesting close air support at grid %location "; | ||
speech[] {{=}} { %Team, RequestingCloseAirSupportAtGrid, %Location }; | |||
class Arguments | |||
{ | { | ||
class Team { type {{=}} "simple"; }; | |||
class Location { type {{=}} "simple"; }; | |||
}; | }; | ||
}; | };*/}} | ||
</code> |= Example 2 | |||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value |
Revision as of 01:02, 4 April 2018
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
Notes
- Posted on may 02, 2010 - 13:33 GMT+1
- Lou Montana
- Jezuro's helping topic on BIforum : link