1
Skrypty / Problem z dialogiem - Easy Dialog Maker 3.3v
« dnia: 2016-01-12, 21:26 »
Chodzi o całkowite przerwanie dialogu
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Ragnar_EXIT(C_INFO)
{
npc = SLD_888_Ragnar;
nr = 999;
condition = DIA_Ragnar_EXIT_Condition;
information = DIA_Ragnar_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Ragnar_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Ragnar_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Ragnar_HELLO1 (C_INFO)
{
npc = SLD_888_Ragnar;
nr = 1;
condition = DIA_Ragnar_HELLO1_Condition;
information = DIA_Ragnar_HELLO1_Info;
permanent = FALSE;
description = "Kim jesteś?";
};
FUNC INT DIA_Ragnar_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Ragnar_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Ragnar_HELLO1_15_01"); //Kim jesteś?
AI_Output (self, other ,"DIA_Ragnar_HELLO1_03_02"); //Nazywam się Ragnar i jestem najemnikiem. Ten leśny dziadek wynajął mnie jako osobistego ochroniarza.
AI_Output (self, other ,"DIA_Ragnar_HELLO1_03_03"); //A tak w ogóle to coś ty za jeden?
AI_Output (other, self ,"DIA_Ragnar_HELLO1_15_04"); //Nie twój interes.
};
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Ragnar_EXIT(C_INFO)
{
npc = SLD_888_Ragnar;
nr = 999;
condition = DIA_Ragnar_EXIT_Condition;
information = DIA_Ragnar_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Ragnar_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Ragnar_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Ragnar_HELLO1 (C_INFO)
{
npc = SLD_888_Ragnar;
nr = 1;
condition = DIA_Ragnar_HELLO1_Condition;
information = DIA_Ragnar_HELLO1_Info;
permanent = FALSE;
description = "Kim jesteś?";
};
FUNC INT DIA_Ragnar_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Ragnar_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Ragnar_HELLO1_15_01"); //Kim jesteś?
AI_Output (self, other ,"DIA_Ragnar_HELLO1_03_02"); //Nazywam się Ragnar i jestem najemnikiem. Ten leśny dziadek wynajął mnie jako osobistego ochroniarza.
AI_Output (self, other ,"DIA_Ragnar_HELLO1_03_03"); //A tak w ogóle to coś ty za jeden?
AI_Output (other, self ,"DIA_Ragnar_HELLO1_15_04"); //Nie twój interes.
};