2
« dnia: 2018-06-29, 22:46 »
Postanowiłem, że zrobię sobie możliwość gotowania w Gothicu 2 NK, no ale jak zwykle okazało się, że jestem na to zbyt głupi i przy włączaniu GothicStarter z opcją Skripte parsen wyskakuje taki fajny error -
U:PAR: CONTENT\STORY\DIALOG_MOBSIS\COOKABIT.D: Unknown indentifier : MOBSI_COOKABIT
Tu macie skrypt gotowania:
// ****************************************************
// GOTOWANIE
// --------------
// Funkcja służąca produkcji jedzenia przy kotle.
// Wymagany przedmiot to łyżka z kodem - ItMi_Scoop
// *****************************************************
FUNC VOID COOKABIT_S1 ()
{
var C_NPC her; her = Hlp_GetNpc(PC_Hero);
if (Hlp_GetInstanceID(self)==Hlp_GetInstanceID(her))
{
self.aivar[AIV_INVINCIBLE]=TRUE;
PLAYER_MOBSI_PRODUCTION = MOBSI_CookABit;
Ai_ProcessInfos (her);
};
};
//*******************************************************
// Zakończenie gotowania
//*******************************************************
INSTANCE PC_CookABit_End (C_Info)
{
npc = PC_Hero;
nr = 999;
condition = PC_CookABit_End_Condition;
information = PC_CookABit_End_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT PC_CookABit_End_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == CookABit)
&& (SOUPSTART == FALSE)
{
return TRUE;
};
};
FUNC VOID PC_CookABit_End_Info()
{
CreateInvItems (self, ItMi_Scoop,1);
B_ENDPRODUCTIONDIALOG ();
};
//*******************************************************
// Produkcja zup
//*******************************************************
var int SOUPSTART;
//----------------------
INSTANCE PC_Soup_Start (C_Info)
{
npc = PC_Hero;
nr = 10;
condition = PC_Soup_Start_Condition;
information = PC_Soup_Start_Info;
permanent = TRUE;
description = "Przygotuj zupę...";
};
FUNC INT PC_Soup_Start_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CookABit)
&& (SOUPSTART == FALSE)
{
return TRUE;
};
};
FUNC VOID PC_Soup_Start_Info()
{
SOUPSTART = TRUE;
};
//*******************************************************
INSTANCE PC_Soup_Stop (C_Info)
{
npc = PC_Hero;
nr = 99;
condition = PC_Soup_Stop_Condition;
information = PC_Soup_Stop_Info;
permanent = TRUE;
description = DIALOG_BACK;
};
FUNC INT PC_Soup_Stop_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CookABit)
&& (SOUPSTART == TRUE)
{
return TRUE;
};
};
FUNC VOID PC_Soup_Stop_Info()
{
SOUPSTART = FALSE;
};
//*******************************************************
INSTANCE PC_Soup_Fish (C_Info)
{
npc = PC_Hero;
nr = 5;
condition = PC_Soup_Lou_Condition;
information = PC_Soup_Lou_Info;
permanent = TRUE;
description = "Zupa rybna";
};
FUNC INT PC_Soup_Fish_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CookABit)
&& (SoupStart == TRUE)
{
return TRUE;
};
};
FUNC VOID PC_Soup_Fish_Info()
{
if (Npc_HasItems (self, ItPl_Blueplant) >= 1)
&& (Npc_HasItems (self, ItFo_Fish) >= 2)
{
Npc_RemoveInvItems (self, ItPl_Blueplant,1);
Npc_RemoveInvItems (self, ItFo_Fish,2);
Print (PRINT_CookingSoupSuccess);
CreateInvItems (self, ItFo_FishSoup,1);
}
else
{
Print (PRINT_ProdItemsMissing);
CreateInvItems (self, ItMi_Scoop,1);
};
B_ENDPRODUCTIONDIALOG ();
};