Jump to content
Sign in to follow this  
Falloutperson416

How to make Bikb files?

Recommended Posts

I have searched around for this, but can't find a clear answer.

I'm wondering how exactly you create the Bikb files. Is it a special program you need? I understand the code that goes into them but how do you create the actual file?

Thanks!

Share this post


Link to post
Share on other sites

No special programs needed. What you need is to define CfgSentences in your Description.ext. Here’s an example:

class CfgSentences
{
class Mission
{
	class Conversation
	{
		file = "conversation.bikb";

		class Sentences
		{
			class soldier1_1
			{
				text = "Soldier 1 text";
				speech[] = {"\speech\soldier1.ogg"};
				actor = "soldier1";
				class Arguments {};
			};
			class soldier2_1
			{
				text = "Soldier 2 text";
				speech[] = {"\speech\soldier2.ogg"};
				actor = "soldier2";
				class Arguments {};
			};
		};

		class Arguments {};
		class Special {};
		startWithVocal[] = {hour};
		startWithConsonant[] = {europe,university};
	};
};
};

Create new class in CfgSentences for any separate conversations. In this example, soldier1 start to talk first. After that soldier2 starts to talk. So “text†is a subtitles for their speech, “speech†is a sound file with voice, and “actor†is a name of a unit.

After that create conversation.bikb file, and put whole Conversation class in it (except “file†parameter), or in-game conversation will not work. Like this:

class Sentences
{
class soldier1_1
{
	text = "Soldier 1 text";
	speech[] = {"\speech\soldier1.ogg"};
	actor = "soldier1";
	class Arguments {};
};
class soldier2_1
{
	text = "Soldier 2 text";
	speech[] = {"\speech\soldier2.ogg"};
	actor = "soldier2";
	class Arguments {};
};
};

class Arguments {};
class Special {};
startWithVocal[] = {hour};
startWithConsonant[] = {europe,university};

Use this method with BIS_fnc_kbTell (you can find its description in Function Viewer).

Edited by RegEdit

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
Sign in to follow this  

×