Jump to content

Recommended Posts

Hi i have a question how is it currently working for you ? I have :

class CfgSentences
{
    class ConversationsAtBase
    {
        class Briefing
        {
            file = "brief.bikb";
            #include "brief.bikb"
        };
    };
    
    class ConversationsAtOutpost
    {
        class Outpost
        {
            file = "taskone.bikb";
            #include "taskone.bikb"
        };
    };
};

and run via trigger : nul = execVM "chat1.sqf"; . and it throws me an error that the class ConversationAtBase cannot be found. I have chat1.sqf to run the dialog for briefing and chat2.sqf to run the trigger after the task is completed. Everything is put in the same folder where the mission is stored. 

brief.bikb :
class Sentences
{
    class Brief_Jenda_Line_1
    {
        text = "Hello gentlemen, I have a mission for you. You scouts need to climb the hill north of here. It's somewhere between the road and the shithole town of Kundshalaka. There's an anti-aircraft detachment of those goatmen there, and the helicopters can't fly because of it."
        speech[] = { "\chat\t1.ogg" };
        class Arguments {};
        actor = "Jenda";
    };

    class Brief_Matous_Line_2
    {
        text = "Understood, sir. I'll pack up my men and we'll go shoot them."
        speech[] = { "\chat\t2.ogg" };
        class Arguments {};
        actor = "Matous";
    };
    
    class Brief_Jenda_Line_3
    {
        text = "That's not all Sarge . When you clear this you need to go down to the town between Shakalaka and some Yakavlanka's factory . The civilians are said to have some important information so ask them what they know."
        speech[] = { "\chat\t3.ogg" };
        class Arguments {};
        actor = "Jenda";
    };
    
    class Brief_Matous_Line_4
    {
        text = "Yes, sir. I understand, sir. Chalpy let's go get 'em."
        speech[] = { "\chat\t4.ogg" };
        class Arguments {};
        actor = "Matous";
    };

    class Brief_Patrik_Line_5
    {
        text = "Yes sir..... Let's unleash the carnage!!!!!"
        speech[] = { "\chat\t5.ogg" };
        class Arguments {};
        actor = "Patrick";
    };
};

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

.

chat1.sqf :
["Briefing", "ConversationsAtBase"] call bis_fnc_kbtell;

chat2.sqf :
["Outpost", "ConversationsAtOutpost"] call bis_fnc_kbtell;

taskone : 
class Sentences
{
    class Outpost_Matous_Line_1
    {
        text = "Alpha 1-1 to Hotel 1-1. The anti-aircraft detachment has been successfully destroyed. Receiving."
        speech[] = { "\chat\o1.ogg" };
        class Arguments {};
        actor = "Matous";
    };
    
    class class class Outpost_Jenda_Line_2
    {
        text = "Hotel 1-1 Roger. Alpha 1-1, move to the factory and ask the civilians what they need. The helicopter crew can get ready. You may need reception."
        speech[] = { "chat1.ogg" };
        class Arguments {};
        actor = "Jenda";
    };
    
    class Brief_Matous_Line_3
    {
        text = "Roger. Let's move to the factory over."
        speech[] = { "\chat\o3.ogg" };
        class Arguments {};
        actor = "Matous";
    };

    class Brief_Ondra_Line_4
    {
        text = "Roger. Let's get the helicopters ready. In case we need to support the boys. Over."
        speech[] = { "\chat\o5.ogg" }
        class Arguments {};
        actor = "Ondra";
    };
};

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

Share this post


Link to post
Share on other sites

Hi,

 

the code seems to be ok at first glance. Just don't forget to put semicolon after text = " "

 

Maybe that is the problem. Try this out.

 

  • Like 1

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

×