Tutaj dialog postaci...
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Marian_EXIT(C_INFO)
{
npc = NONE_103_Marian;
nr = 999;
condition = DIA_Marian_EXIT_Condition;
information = DIA_Marian_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Marian_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Marian_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Marian_HELLO1 (C_INFO)
{
npc = NONE_103_Marian;
nr = 1;
condition = DIA_Marian_HELLO1_Condition;
information = DIA_Marian_HELLO1_Info;
permanent = FALSE;
description = "Kim jesteś?";
};
FUNC INT DIA_Marian_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Marian_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Marian_HELLO1_15_01"); //Kim jesteś?
AI_Output (self, other ,"DIA_Marian_HELLO1_03_02"); //Nazywam się Marian.
AI_Output (other, self ,"DIA_Marian_HELLO1_15_03"); //Masz dla mnie jakieś zadanie?
AI_Output (self, other ,"DIA_Marian_HELLO1_03_04"); //Oczywiście.Przynieś mi sztylet.
Log_CreateTopic (TOPIC_Sztylet_Mariana, LOG_MISSION);
Log_SetTopicStatus (TOPIC_Sztylet_Mariana, LOG_RUNNING);
B_LogEntry (TOPIC_Sztylet_Mariana,"Mam przynieść mu sztylet(po jaką cholerę?)");
};
//========================================
//-----------------> HELLO2
//========================================
INSTANCE DIA_Marian_HELLO2 (C_INFO)
{
npc = NONE_103_Marian;
nr = 2;
condition = DIA_Marian_HELLO2_Condition;
information = DIA_Marian_HELLO2_Info;
permanent = FALSE;
description = "Mam sztylet.";
};
FUNC INT DIA_Marian_HELLO2_Condition()
{
if (Npc_KnowsInfo (other, DIA_Marian_HELLO1))
&& (Npc_HasItems (other, ItMw_1h_VLK_Dagger) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Marian_HELLO2_Info()
{
AI_Output (other, self ,"DIA_Marian_HELLO2_15_01"); //Mam sztylet.
B_GiveInvItems (other, self, ItMw_1h_VLK_Dagger, 1);
AI_DrawWeapon (self);
AI_RemoveWeapon (self);
AI_Output (self, other ,"DIA_Marian_HELLO2_03_02"); //Wielkie dzięki.Przyjmij w nagrodę 100 sztuk złota.
CreateInvItems (self, ItMi_Gold, 100);
B_GiveInvItems (self, other, ItMi_Gold, 100);
B_LogEntry (TOPIC_Sztylet_Mariana,"Przyniosłem sztylet i dostałem 100 sztuk złota.");
Log_SetTopicStatus (TOPIC_Sztylet_Mariana, LOG_SUCCESS);
B_GivePlayerXP (100);
AI_Output (other, self ,"DIA_Marian_HELLO2_15_03"); //Do zobaczenia.
AI_Output (self, other ,"DIA_Marian_HELLO2_03_04"); //Powodzenia w dalszej drodze.
};
Tutaj skrypt postaci....
// -----------------------------------
// This script file was created with NSC Script Generator 2.2 by Mirage Game Development
// Mirage Game Development - copyright 2005
// File: NONE_103_Marian
// -----------------------------------
instance NONE_103_Marian (Npc_Default)
{
// ------ NSC ------
name = "Marian";
guild = GIL_NONE;
id = 103;
voice = 20;
npctype = NPCTYPE_FRIEND;
// ------ Attributes ------
B_SetAttributesToChapter(self, 2);
// ------ NSC relevant talents ------
B_GiveNpcTalents (self);
// ------ Fight tactic ------
fight_tactic = FAI_HUMAN_NORMAL;
// ------ Equipted weapons ------
EquipItem (self, ItMW_1H_FerrosSword_Mis);
EquipItem (self, ItRw_Bow_L_03_MIS);
// ------ Inventory ------
B_CreateAmbientInv (self);
CreateInvItems (self, ItFo_Bread, 1);
// ------ Visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Fighter", Face_N_ZombieMud, BodyTex_N, ITAR_Prisoner);
Mdl_SetModelFatness (self, 0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ Fight skills ------
B_SetFightSkills (self, 1);
};
FUNC VOID Rtn_Start_103()
{
TA_Stand_WP(08,00,00,00,"NW_TAVERNE_02");
TA_Practice_Sword(00,00,08,00,"NW_TAVERNE_02");
};
Startup postaci....
Wld_InsertNpc (NONE_103_Marian,"NW_TAVERNE_02");
Wpis do zadania....
const string Topic_Sztylet_Mariana = "Miecz Mariana";
Tworzyłem od nowa postać,później dialog+zadanie,naprawiałem skrypty w spacerze,później aktualizowałem skrypty,później znowu naprawa skryptów i tworzenie moda.Daję nową grę i.....postać jest,ale nie można z nią wg porozmawiać.....
Edit:Dodam,że wcześniej stworzyłem 2 postacie z zadaniami i one normalnie są w grze oraz można z nimi porozmawiać.A jak chcę dodać 3 postać to ni h***nie da rady pogadać.