Jump to content
tom.machu

BIS_fnc_kbTell - how to get arguments from sentence config in bikb?

Recommended Posts

Hi,

 

is it possible to get arguments from sentence config .bkib file and use them  in BIS_fnc_kbTell as you can do so with kbTell?

 

class Sentences
{
	class Sentence1
	{
		text = "$STR_HelloThere";
		speech[] = { "\Sound\hello.ogg" };
		class Arguments {};
		actor = "obi1";
	};
	class Sentence2
	{
		text = "$STR_GeneralKenobi";
		speech[] = { "Sound\gk.ogg" };
		class Arguments
		{
				class Team { type = "simple"; };
				class Location { type = "simple"; };
		};
		actor = "griev";
	};
	class Sentence3
	{
		text = "$STR_YouAreABoldOne";
		speech[] = { "Sound\bold.ogg" };
		class Arguments 
		{
			class Name { type = "simple"; };
		};
		actor = "griev";
	};
};
class Arguments {};
class Special {};
startWithVocal[] = { hour };
startWithConsonant[] = { europe, university };

I dont know, how to get arguments from sentence 2 and sentence 3. I thought I could have use of the code parameter, but Im clueless honestly right now, and I failed to make it working.

 

 

["Topic", "MissionName", "", false,  [{}[]],  [player, NPC], 1, true] spawn BIS_fnc_kbTell;

 

Thank you folks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×