Jump to content
Sign in to follow this  
xripx

Trying to make a conversation between soldiers, what is wrong with my code?

Recommended Posts

I'm triggering the conversation by creating a trigger with execVM "StartTalk.sqf"; on Activation.

 

 

StartTalk.sqf

["Banter", "HeloConvo"] call bis_fnc_kbtell;

 description.ext

 

class CfgSentences
{
	class HeloConvo
	{
		class Banter
		{
			file = "Helo.bikb";
			#include "Helo.bikb"
		};
	};
};

};

Helo.bikb

 

class Sentences
{
	class Helo_Tower_Line_1
	{
		text = "";
		speech[] = { "\talk\1Wherearewe.ogg" };
		class Arguments {};
		actor = "Tower";
	};
	
	class Helo_Jackson_Line_2
	{
		text = ""
		speech[] = { "\talk\2Mothershouse.ogg" };
		class Arguments {};
		actor = "Jackson";
	};
	
	class Helo_Tower_Line_3
	{
		text = ""
		speech[] = { "\talk\3Realcute.ogg" };
		class Arguments {};
		actor = "Tower";
	};

	class Helo_Jackson_Line_4
	{
		text = ""
		speech[] = { "\talk\4Anytimeanywhere.ogg" };
		class Arguments {};
		actor = "Jackson";
	};
};

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

 

When I reach the trigger, I get the error

 

 

[BIS_fnc_kbTopicConfig] Class 'HeloConvo' not found in CfgSentences.

 

Any ideas?

Share this post


Link to post
Share on other sites

I cleaned up the code a little further and got rid of the error, but it still wasn't actually executing the script. Ultimately the problem was that I had radioenabled false in the mission init, which kept them from speaking.

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  

×