Witam. Jak zapewne wiecie, niedawno utworzyłem temat dotyczący błędu podczas reparsowania. Nie za bardzo rozumiałem o co chodzi w tych zmiennych, ale jakoś się udało. Do czasu. Do czasu, gdy zauważyłem kilka poważnych błędów. No i zrobiłem małe "przemeblowanko" skryptu. I teraz podczas reparsacji wylatuje radosne okienko z troszkę mniej radosnym tekstem, a mianowicie:
U: PAR: CONTENT\STORY\MISSIONS\DIA_GRD_10003_GIACOMO.D: Wrong type: INFO_GIACOMO_ZADANIE
Skrypt dialogu:
///////////////////////////////////////////////////////
////////// stop
///////////////////////////////////////////////////////
instance Info_Giacomo_stop (C_INFO)
{
npc = GRD_10003_Giacomo;
condition = Info_Giacomo_stop_condition;
information = Info_Giacomo_stop_info;
permanent = FALSE;
important = TRUE;
};
var int zmienna1;
FUNC int Info_Giacomo_stop_condition()
{
return TRUE;
};
FUNC VOID Info_Giacomo_stop_info()
{
AI_Output (self, other,"Info_Giacomo_stop_1_01"); //.
AI_Output (other,self,"Info_Giacomo_stop_1_02"); //.
AI_Output (self, other,"Info_Giacomo_stop_1_03"); //.
AI_Output (other,self,"Info_Giacomo_stop_1_04"); //.
AI_Output (self, other,"Info_Giacomo_stop_1_05"); //.
Info_ClearChoices(Info_Giacomo_stop);
Info_AddChoice (Info_Giacomo_stop, "." ,Info_Giacomo_zadanie);
};
FUNC VOID Info_Giacomo_zadanie()
{
AI_Output (other, self,"Info_Giacomo_zadanie_1_01"); //.
AI_Output (self, other,"Info_Giacomo_zadanie_1_02"); //.
AI_Output (other,self,"Info_Giacomo_zadanie_1_03"); //.
AI_Output (self, other,"Info_Giacomo_zadanie_1_04"); //.
Log_CreateTopic(CH1_Quest1, LOG_MISSION);
B_LogEntry(CH1_Quest1, ".");
zmienna1=5;
};
///////////////////////////////////////////////////////
/////////////// wynocha
////////////////////////////////////////////////////////
instance Dia_Giacomo_wynocha (C_INFO)
{
npc = GRD_10003_Giacomo;
nr = 2;
condition = Dia_Giacomo_wynocha_condition;
information = Dia_Giacomo_wynocha_info;
permanent = FALSE;
important = TRUE;
description = "NIE MA!";
};
func int Dia_Giacomo_wynocha_condition()
{
if (zmienna1==5)
{
return 1;
};
};
func void Dia_Giacomo_wynocha_info()
{
AI_Output (self, other,"DIA_Giacomo_wynocha_1_01"); //.
AI_Output (other, self,"DIA_Giacomo_wynocha_1_02"); //.
AI_Output (self, other,"DIA_Giacomo_wynocha_1_03"); //.
AI_GotoWP (hero, "WYNOCHA");
AI_StopProcessInfos (self);
};
////////////////////////////////////////////////////////
/////////////// wstep
///////////////////////////////////////////////////////
instance Dia_Giacomo_wstep (C_INFO)
{
npc = GRD_10003_Giacomo;
nr = 3;
condition = Dia_Giacomo_wstep_condition;
information = Dia_Giacomo_wstep_info;
permanent = FALSE;
important = FALSE;
description = ".";
};
func int Dia_Giacomo_wstep_condition()
{
if (Npc_IsDead(NON_10010_Samuel) && Npc_KnowsInfo (hero,Info_Giacomo_zadanie))
{
zmienna1=zmienna1-2;
return TRUE;
};
};
func void Dia_Giacomo_wstep_info()
{
AI_Output (other, self,"DIA_Giacomo_wstep_1_01"); //.
AI_Output (self, other,"DIA_Giacomo_wstep_1_02"); //.
AI_Output (other, self,"DIA_Giacomo_wstep_1_03"); //.
AI_Output (self, other,"DIA_Giacomo_wstep_1_04"); //.
AI_Output (other, self,"DIA_Giacomo_wstep_1_05"); //.
AI_Output (self, other,"DIA_Giacomo_wstep_1_06"); //.
};
///////////////////////////////////////////////////////
////////////// EXIT
///////////////////////////////////////////////////////
instance Dia_Giacomo_EXIT (C_INFO)
{
npc = GRD_10003_Giacomo;
nr = 999;
condition = Dia_Giacomo_EXIT_condition;
information = Dia_Giacomo_EXIT_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC int Dia_Giacomo_EXIT_condition()
{
return TRUE;
};
FUNC VOID DIA_Giacomo_EXIT_info()
{
AI_StopProcessInfos (self);
};
Poszukiwany fragment(INFO_GIACOMO_ZADANIE) występuje we fragmentach:
Info_ClearChoices(Info_Giacomo_stop);
Info_AddChoice (Info_Giacomo_stop, "." ,Info_Giacomo_zadanie);
};
FUNC VOID Info_Giacomo_zadanie()
{
AI_Output (other, self,"Info_Giacomo_zadanie_1_01"); //.
AI_Output (self, other,"Info_Giacomo_zadanie_1_02"); //.
AI_Output (other,self,"Info_Giacomo_zadanie_1_03"); //.
AI_Output (self, other,"Info_Giacomo_zadanie_1_04"); //.
func int Dia_Giacomo_wstep_condition()
{
if (Npc_IsDead(NON_10010_Samuel) && Npc_KnowsInfo (hero,Info_Giacomo_zadanie))
{