1
Skrypty / Niedziałający trialog LeGo
« dnia: 2016-08-31, 19:17 »
Stworzyłem skrypt Trialogu w Gothicu 2 NK. Ale gdy próbuje porozmawiać z NPC i przyjdzie czas na dialog 3 osoby to i tak wypowiada go 2 sosoba.
Skrypt:
Skrypt:
Kod: [Zaznacz]
instance DIA_BDT_001_Arakus_Start (C_INFO)
{
npc = BDT_001_Arakus;
nr = 1;
condition = DIA_BDT_001_Arakus_Start_condition;
information = DIA_BDT_001_Arakus_Start_info;
important = TRUE;
permanent = FALSE;
};
func int DIA_BDT_001_Arakus_Start_condition()
{
return TRUE;
};
func void DIA_BDT_001_Arakus_Start_info()
{
var c_npc Arakus;
var c_npc Ares;
Arakus = Hlp_GetNpc(BDT_001_Arakus);
Ares = Hlp_GetNpc(KIDS_001_Ares);
TRIA_Invite(Ares);
TRIA_Start();
TRIA_Next(Arakus);
AI_Output (self, other, "DIA_BDT_001_Arakus_Start_01_01");//Stójcie bachory. Teraz pójdziecie ze mną. Mój szef się ucieszy.
AI_Output (other, self, "DIA_BDT_001_Arakus_Start_01_02");//Nie. Ares idziemy stąd!
TRIA_Next(Ares);
AI_Output (self, other, "DIA_BDT_001_Arakus_Start_01_03");//Chodźmy, szybko. === To wypowiada Arakus a nie Ares.
TRIA_Next(Arakus);
AI_DrawWeapon (self);
AI_Output (self, other, "DIA_BDT_001_Arakus_Start_01_04");//Nigdzie nie pójdziecie.
AI_RemoveWeapon(self);
// ...
TRIA_Finish();
};