Hallo, ich will hier auch nicht lange um den Brei reden, undzwar ist mein Problem das wenn ich einen Npc erstelle, und ihm eine Quest gebe, kann ich der Questabgabe keinen Condition Eintrag geben hier als beispiel:
Instance DIA_Aziz_Abgabe (C_INFO)
{
npc = BAU_99004_Aziz_Addon;
nr = 3;
condition = DIA_Aziz_Abgabe_Condition;
information = DIA_Aziz_Abgabe_Info;
description = "I brought you their weapons. I Killed them.";
};
Func int DIA_Aziz_Abgabe_Condition()
{
if (MIS_Goblinz == LOG_RUNNING)
&& (Npc_HasItems (other, ItMw_1h_Bau_Mace) >=3
{
return True;
};
};
Func void DIA_Aziz_Abgabe_Info()
{
AI_Output (other, self, "DIA_Aziz_Abgabe_15_0"); //I brought you their weapons. I Killed them.
AI_Output (self, other, "DIA_Aziz_Abgabe_3_1"); //Nice ! Thanks stranger.
B_GiveInvItems (other, self, ItMw_1h_Bau_Mace, 3);
B_GivePlayerXP (250);
MIS_Vatras_FindTheBanditTrader = LOG_SUCCESS;
Log_CreateTopic (TOPIC_Goblinz, LOG_MISSION);
Log_SetTopicStatus(TOPIC_Goblinz, LOG_SUCCESS);
B_LogEntry (TOPIC_Goblinz,"I have brought him the Goblin weapons, but what do I do now?");
};
Das ist jetzt die Questabgabe. Das Feld:
Func int DIA_Aziz_Abgabe_Condition()
{
if (MIS_Goblinz == LOG_RUNNING)
&& (Npc_HasItems (other, ItMw_1h_Bau_Mace) >=3
{
return True;
};
};
funktioniert nicht. Ich habe es getestet mit dem:
if (MIS_Goblinz == LOG_RUNNING)
&& (Npc_HasItems (other, ItMw_1h_Bau_Mace) >=3
zu removen aber dann kann man die Quest halt direkt abgeben ohne sie erst erhalten zuhaben. Ich bin kein experte in diesem Bereich also nehmt mir das nicht übel.