Siema Bucik jest problem w tej nowej wersji.A mianowicie wywala mi błąd,że Unknown identifier: DIA_TESTOWIEC_HELLO1.
// *Script was make in Easy Dialog Maker (EDM)
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA__EXIT(C_INFO)
{
npc = NONE_304_Testowiec;
nr = 999;
condition = DIA__EXIT_Condition;
information = DIA__EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA__EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA__EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA__HELLO1 (C_INFO)
{
npc = NONE_304_Testowiec;
nr = 1;
condition = DIA_Testowiec_HELLO1_Condition;
information = DIA_Testowiec_HELLO1_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Testowiec_HELLO1_Condition()
{
if (Npc_GetDistToNpc(self, other) == 20)
{
return TRUE;
};
};
FUNC VOID DIA_Testowiec_HELLO1_Info()
{
AI_Output (self, other ,"DIA_Testowiec_HELLO1_03_01"); //Zaczekaj chwilę.Wyglądasz mi na osobę,która nie pogardzi darmowymi przedmiotami.
AI_Output (other, self ,"DIA_Testowiec_HELLO1_15_02"); //A co rozdajesz je?
AI_Output (self, other ,"DIA_Testowiec_HELLO1_03_03"); //Oczywiście.Wybierz sobie coś.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_03_04"); //Możesz dostać złoto,pancerz lub 2 zwoje po 5 sztuk.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_03_05"); //Wybór należy do ciebie.
Info_ClearChoices (DIA_Testowiec_HELLO1);
Info_AddChoice (DIA_Testowiec_HELLO1, "Wezmę 100 sztuk złota.", DIA_Testowiec_HELLO1_Zloto);
Info_AddChoice (DIA_Testowiec_HELLO1, "Wezmę ten pancerz.", DIA_Testowiec_HELLO1_Pancerz);
Info_AddChoice (DIA_Testowiec_HELLO1, "Jakie mam zwoje do wyboru?", DIA_Testowiec_HELLO1_JakieZwoje);
};
FUNC VOID DIA_Testowiec_HELLO1_Zloto()
{
AI_Output (other, self ,"DIA_Testowiec_HELLO1_Zloto_15_01"); //Wezmę 100 sztuk złota.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_Zloto_03_02"); //Jak sobie chcesz.
CreateInvItems (self, ItMi_Gold, 100);
B_GiveInvItems (self, other, ItMi_Gold, 100);
Info_ClearChoices (DIA_Testowiec_HELLO1);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Testowiec_HELLO1_Pancerz()
{
AI_Output (other, self ,"DIA_Testowiec_HELLO1_Pancerz_15_01"); //Wezmę ten pancerz.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_Pancerz_03_02"); //Niech cię chroni w walce.
CreateInvItems (self, GUR_ARMOR_M, 1);
B_GiveInvItems (self, other, GUR_ARMOR_M, 1);
Info_ClearChoices (DIA_Testowiec_HELLO1);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Testowiec_HELLO1_JakieZwoje()
{
AI_Output (other, self ,"DIA_Testowiec_HELLO1_JakieZwoje_15_01"); //Jakie mam zwoje do wyboru?
AI_Output (self, other ,"DIA_Testowiec_HELLO1_JakieZwoje_03_02"); //Kula ognia.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_JakieZwoje_03_03"); //Tchnienie śmierci.
AI_Output (self, other ,"DIA_Testowiec_HELLO1_JakieZwoje_03_04"); //Lub przyzwanie wilka.
Info_ClearChoices (DIA_Testowiec_HELLO1);
Info_AddChoice (DIA_Testowiec_HELLO1, "Kula ognia.", DIA_Testowiec_HELLO1_JakieZwoje_KulaOgnia);
Info_AddChoice (DIA_Testowiec_HELLO1, "Tchnienie śmierci.", DIA_Testowiec_HELLO1_JakieZwoje_TchnienieSmierci);
Info_AddChoice (DIA_Testowiec_HELLO1, "Przyzwanie wilka.", DIA_Testowiec_HELLO1_JakieZwoje_PrzyzwanieWilka);
Info_AddChoice (DIA_Testowiec_HELLO1, "[WRÓĆ]", DIA_Testowiec_HELLO1_JakieZwoje_BACK);
};
FUNC VOID DIA_Testowiec_HELLO1_JakieZwoje_KulaOgnia()
{
CreateInvItems (self, ItSc_InstantFireball, 5);
B_GiveInvItems (self, other, ItSc_InstantFireball, 5);
if (Liczba == 2)
{
Info_ClearChoices (DIA_Testowiec_HELLO1);
};
};
FUNC VOID DIA_Testowiec_HELLO1_JakieZwoje_TchnienieSmierci()
{
CreateInvItems (self, ItSc_BreathOfDeath, 5);
B_GiveInvItems (self, other, ItSc_BreathOfDeath, 5);
if (Liczba == 2)
{
Info_ClearChoices (DIA_Testowiec_HELLO1);
};
};
FUNC VOID DIA_Testowiec_HELLO1_JakieZwoje_PrzyzwanieWilka()
{
CreateInvItems (self, ItSc_SumWolf, 5);
B_GiveInvItems (self, other, ItSc_SumWolf, 5);
if (Liczba == 2)
{
Info_ClearChoices (DIA_Testowiec_HELLO1);
};
};
FUNC VOID DIA_Testowiec_HELLO1_JakieZwoje_BACK()
{
Info_ClearChoices (DIA_Testowiec_HELLO1);
Info_AddChoice (DIA_Testowiec_HELLO1, "Wezmę 100 sztuk złota.", DIA_Testowiec_HELLO1_Zloto);
Info_AddChoice (DIA_Testowiec_HELLO1, "Wezmę ten pancerz.", DIA_Testowiec_HELLO1_Pancerz);
Info_AddChoice (DIA_Testowiec_HELLO1, "Jakie mam zwoje do wyboru?", DIA_Testowiec_HELLO1_JakieZwoje);
};
//========================================
//-----------------> HELLO2
//========================================
INSTANCE DIA__HELLO2 (C_INFO)
{
npc = NONE_304_Testowiec;
nr = 2;
condition = DIA_Testowiec_HELLO2_Condition;
information = DIA_Testowiec_HELLO2_Info;
permanent = FALSE;
description = "";
};
FUNC INT DIA_Testowiec_HELLO2_Condition()
{
if (Npc_KnowsInfo (other, DIA_Testowiec_HELLO1))
{
return TRUE;
};
};
FUNC VOID DIA_Testowiec_HELLO2_Info()
{
AI_Output (other, self ,"DIA_Testowiec_HELLO2_15_01"); //Wielkie dzięki.
AI_Output (self, other ,"DIA_Testowiec_HELLO2_03_02"); //Nie ma sprawy.Miło było cię poznać.
CreateInvItems (self, itfo_wodka, 1);
B_GiveInvItems (self, other, itfo_wodka, 1);
AI_Output (self, other ,"DIA_Testowiec_HELLO2_03_03"); //Masz na drogę.Powodzenia.
AI_StopProcessInfos (self);
};
Gdzie tu jest bląd?