Witam,
Wstawiłem swojego pierwszego NPC oraz dialog do niego..Jest on widoczny w grze jednak nie jest interaktywny, tj. nie mogę z nim rozmawiać (Jak już mówiłem dodałem własny dialog), a jak go zaatakuje nie odpowiada atakiem.
Oto skrypty NPC, robione w NSC script generator:
// -----------------------------------
// This script file was created with NSC Script Generator 2.2 by Mirage Game Development
// Mirage Game Development - copyright 2005
// File: NONE_1001_Wrzód
// -----------------------------------
instance NONE_1001_Wrzód (Npc_Default)
{
// ------ NSC ------
name = "Wrzód";
guild = GIL_NONE;
id = 1001;
voice = 3;
npctype = NPCTYPE_FRIEND;
// ------ AIVARs ------
aivar[AIV_NewsOverride] = TRUE;
// ------ Attributes ------
B_SetAttributesToChapter(self, 1);
// ------ NSC relevant talents ------
B_GiveNpcTalents (self);
// ------ Fight tactic ------
fight_tactic = FAI_HUMAN_NORMAL;
// ------ Equipted weapons ------
EquipItem (self, ItMw_Sturmbringer);
// ------ Inventory ------
B_CreateAmbientInv (self);
CreateInvItems (self, ItPo_Health_01, 1);
// ------ Visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Mud, BodyTex_N, ITAR_Prisoner);
Mdl_SetModelFatness (self, 1);
Mdl_ApplyOverlayMds (self, "Humans_Arrogance.mds");
// ------ Fight skills ------
B_SetFightSkills (self, 0);
};
A to skrypty dialogu, tworzonego w easy dialog maker:
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Wrzód_EXIT(C_INFO)
{
npc = NONE_1001_Wrzód;
nr = 999;
condition = DIA_Wrzód_EXIT_Condition;
information = DIA_Wrzód_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Wrzód_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Wrzód_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> OPCJA KRADZIEŻY
//========================================
INSTANCE DIA_Wrzód_PICKPOCKET(C_INFO)
{
npc = NONE_1001_Wrzód;
nr = 900;
condition = DIA_Wrzód_PICKPOCKET_Condition;
information = DIA_Wrzód_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_20;
};
FUNC INT DIA_Wrzód_PICKPOCKET_Condition()
{
C_Beklauen (20, 43);
};
FUNC VOID DIA_Wrzód_PICKPOCKET_Info()
{
Info_ClearChoices (DIA_Wrzód_PICKPOCKET);
Info_AddChoice (DIA_Wrzód_PICKPOCKET, DIALOG_BACK ,DIA_Wrzód_PICKPOCKET_BACK);
Info_AddChoice (DIA_Wrzód_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Wrzód_PICKPOCKET_DoIt);
};
FUNC VOID DIA_Wrzód_PICKPOCKET_DoIt()
{
B_Beklauen ();
Info_ClearChoices (DIA_Wrzód_PICKPOCKET);
};
FUNC VOID DIA_Wrzód_PICKPOCKET_BACK()
{
Info_ClearChoices (DIA_Wrzód_PICKPOCKET);
};
//========================================
//-----------------> HELLO1001
//========================================
INSTANCE DIA_Wrzód_HELLO1001 (C_INFO)
{
npc = NONE_1001_Wrzód;
nr = 1001;
condition = DIA_Wrzód_HELLO1001_Condition;
information = DIA_Wrzód_HELLO1001_Info;
permanent = FALSE;
description = "Kim jesteś?";
};
FUNC INT DIA_Wrzód_HELLO1001_Condition()
{
return TRUE;
};
FUNC VOID DIA_Wrzód_HELLO1001_Info()
{
AI_Output (other, self ,"DIA_Wrzód_HELLO1001_15_01"); //Kim jesteś?
AI_Output (self, other ,"DIA_Wrzód_HELLO1001_03_02"); //Chej, ja cię znam.
AI_Output (self, other ,"DIA_Wrzód_HELLO1001_03_03"); //To ty wziołeś mnie na kompana, a potem pobiłeś?
AI_Output (self, other ,"DIA_Wrzód_HELLO1001_03_04"); //NIENAWIDZE CIĘ!
AI_Output (self, other ,"DIA_Wrzód_HELLO1001_03_05"); //GIŃ
AI_StopProcessInfos (self);
B_Attack (self, other, AR_NONE,1);
};
Bardzo proszę o rozwiązanie problemu.