kbTell: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add to Conversations command group)
m (Add Conversations link & some fixes)
Line 1: Line 1:
[[Category:Scripting Commands|KBTELL]]
[[Category:Scripting Commands ArmA|KBTELL]]
[[Category:Scripting Commands ArmA2|KBTELL]]
{{Command|= Comments
{{Command|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 11: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| person '''kbTell''' [receiver, TopicName, SentenceClass, [argumentName, argumentValue, argumentText, argumentSpeech], ...,forceRadio] |= Syntax
| person [[kbTell]] [receiver, topicName, sentenceClass, [argumentName, argumentValue, argumentText, argumentSpeech], (…) , forceRadio] |= Syntax


|p1= person: [[Object]] |= Parameter 1
|p1= person: [[Object]] |= Parameter 1
Line 21: Line 17:


|p3= receiver: [[Object]] |= Parameter 3
|p3= receiver: [[Object]] |= Parameter 3
|p4= TopicName: [[String]] |= Parameter 4
 
|p5= SentenceClass: [[String]] |= Parameter5
|p4= topicName: [[String]] |= Parameter 4
|p6= argumentName: [[String]] |= Parameter6
 
|p5= sentenceClass: [[String]] |= Parameter5
 
|p6= argumentName: [[String]] |= Parameter6
 
|p7= argumentValue: [[Code]] |= Parameter 7
|p7= argumentValue: [[Code]] |= Parameter 7
|p8= argumentText: [[String]] |= Parameter 8
|p8= argumentText: [[String]] |= Parameter 8
|p9= argumentSpeech: [[Array]] of Strings - each string is an already defined word in configs. |= Parameter 9
 
|p10= forceRadio (optional): [[Boolean]] or [[Number]] or [[String]] - true/false to force use of radio, [[Number]] 1-10 to force use of custom radio channel, or [[String]] name of radio channel to use 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND'|= Parameter 10
|p9= argumentSpeech: [[Array]] of [[String|Strings]] - each string is an already defined word in configs. |= Parameter 9
 
|p10= forceRadio (optional): [[Boolean]], [[Number]] or [[String]]
* [[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'|= Parameter 10


|x1= <code>// In Config file
|x1= <code>// In Config file
Line 47: Line 53:
{
{
text = "%team requesting close air support at grid %location ";
text = "%team requesting close air support at grid %location ";
speech[]={%Team,RequestingCloseAirSupportAtGrid,%Location};
speech[] = { %Team, RequestingCloseAirSupportAtGrid, %Location };
class Arguments  
class Arguments  
{
{
class Team {type = "simple";};
class Team { type = "simple"; };
class Location {type = "simple";};
class Location { type = "simple"; };
};
};
};
};
};
};


class Arguments{};
class Arguments {};
class Special {};
class Special {};


Line 64: Line 70:
// In Script file
// In Script file
BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];//Game Logic as HQ
BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];//Game Logic as HQ
BIS_SSM_HQWEST setGroupId ["Headquaters", "SIX"];
BIS_SSM_HQWEST setGroupId ["Headquarters", "SIX"];
BIS_SSM_HQWEST setIdentity "SSMHQ_EN";
BIS_SSM_HQWEST setIdentity "SSMHQ_EN";


player kbAddtopic["Airstrike", BIKB];
player kbAddtopic ["Airstrike", BIKB];
BIS_SSM_HQWEST kbAddtopic["Airstrike", BIKB];
BIS_SSM_HQWEST kbAddtopic ["Airstrike", BIKB];
player kbTell [BIS_SSM_HQWEST,"Airstrike","AirstrikeRequest", ["Team",{},"Anvil",["Anvil"]],["Location",{},"Strelka",["Strelka"]],true];</code> |= Example 1
player kbTell [BIS_SSM_HQWEST, "Airstrike", "AirstrikeRequest", ["Team", {}, "Anvil", ["Anvil"]], ["Location", {}, "Strelka", ["Strelka"]], true];</code> |= Example 1


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


| [[kbAddTopic]], [[kbHasTopic]], [[kbRemoveTopic]]  |= See also
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]]  |= See also


}}
}}
Line 81: Line 87:
<!-- Note Section BEGIN -->  
<!-- Note Section BEGIN -->  
<dd class="notedate">Posted on may 02, 2010 - 13:33 GMT+1
<dd class="notedate">Posted on may 02, 2010 - 13:33 GMT+1
<dt class="note">'''[[User:Lou Montana|Lou Montana]]'''
<dt class="note">[[User:Lou Montana|Lou Montana]]
<dd class="note"> Jezuro help on BIforum : [http://forums.bistudio.com/showthread.php?t=91875]  
<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>

Revision as of 21:00, 27 March 2018

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, [argumentName, argumentValue, argumentText, argumentSpeech], (…) , forceRadio]
Parameters:
person: Object
[receiver, TopicName, SentenceClass, [argumentName, argumentValue, argumentText, argumentSpeech], ...,forceRadio]: Array
receiver: Object
topicName: String
sentenceClass: String
argumentName: String
argumentValue: Code
argumentText: String
argumentSpeech: Array of Strings - each string is an already defined word in configs.
forceRadio (optional): Boolean, Number or String
  • 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:
// In Config file class CfgIdentities { class SSMHQ { name = $STR_DN_WARFARE_HQ_BASE_UNFOLDED; face = "Face97"; glasses = "None"; speaker = "MaleA0EN"; pitch = 1.0; }; }; // IN BIKB class Sentences { 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"; }; }; }; }; class Arguments {}; class Special {}; startWithVocal[] = {}; startWithConsonant[] = {}; // In Script file BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];//Game Logic as HQ BIS_SSM_HQWEST setGroupId ["Headquarters", "SIX"]; BIS_SSM_HQWEST setIdentity "SSMHQ_EN"; player kbAddtopic ["Airstrike", BIKB]; BIS_SSM_HQWEST kbAddtopic ["Airstrike", BIKB]; player kbTell [BIS_SSM_HQWEST, "Airstrike", "AirstrikeRequest", ["Team", {}, "Anvil", ["Anvil"]], ["Location", {}, "Strelka", ["Strelka"]], true];

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

Bottom Section