Nie wiem co zrobic, zmienic cos w mission i npc ?
mission przyklad:
Spoiler
// **************************************************
// EXIT
// **************************************************
INSTANCE DIA_Herek_Exit (C_INFO)
{
npc = Vlk_511_Herek;
nr = 999;
condition = DIA_Herek_Exit_Condition;
information = DIA_Herek_Exit_Info;
permanent = 1;
description = DIALOG_ENDE;
};
FUNC INT DIA_Herek_Exit_Condition()
{
return 1;
};
FUNC VOID DIA_Herek_Exit_Info()
{
AI_StopProcessInfos ( self );
};
// **************************************************
// Schutzgeld-Bully
// **************************************************
INSTANCE DIA_Herek_Bully (C_INFO)
{
npc = Vlk_511_Herek;
nr = 2;
condition = DIA_Herek_Bully_Condition;
information = DIA_Herek_Bully_Info;
permanent = 0;
important = 1;
};
FUNC INT DIA_Herek_Bully_Condition()
{
if ( (Npc_GetDistToNpc(self,other)<=ZivilAnquatschDist) && (Herek_ProtectionBully==TRUE) )
{
return 1;
};
};
FUNC VOID DIA_Herek_Bully_Info()
{
AI_Output (self, other,"DIA_Herek_Bully_01_00"); //Zaczekaj! Słyszałem, że gadałeś z Bloodwynem?
AI_Output (other, self,"DIA_Herek_Bully_15_01"); //A co? Czego chcesz?
AI_Output (self, other,"DIA_Herek_Bully_01_02"); //Niezły z ciebie gość! Niewielu ma tyle odwagi, żeby mu podskoczyć!
AI_Output (self, other,"DIA_Herek_Bully_01_03"); //A to oznacza, że teraz my wszyscy będziemy musieli płacić twoją dolę.
AI_Output (self, other,"DIA_Herek_Bully_01_04"); //Postaram się, żebyś o tym pamiętał, gdy Bloodwyn znów poprosi cię o datek.
Npc_SetPermAttitude (self,ATT_ANGRY);
AI_StopProcessInfos (self);
Npc_SetTarget(self,other);
AI_StartState(self,ZS_ATTACK,1,"");
};
// **************************************************
// Motz
// **************************************************
INSTANCE DIA_Herek_Motz (C_INFO)
{
npc = Vlk_511_Herek;
nr = 2;
condition = DIA_Herek_Motz_Condition;
information = DIA_Herek_Motz_Info;
permanent = 0;
description = "Co słychać?";
};
FUNC INT DIA_Herek_Motz_Condition()
{
if (Herek_ProtectionBully==FALSE)
{
return 1;
};
};
FUNC VOID DIA_Herek_Motz_Info()
{
AI_Output (other, self,"DIA_Herek_Motz_15_00"); //Co słychać?
AI_Output (self, other,"DIA_Herek_Motz_01_01"); //W tym obozie jest miejsce tylko dla jednego z nas!
AI_Output (other, self,"DIA_Herek_Motz_15_02"); //Co proszę?
AI_Output (self, other,"DIA_Herek_Motz_01_03"); //Gdyby to zależało ode mnie, dawno już byś nie żył!
AI_Output (self, other,"DIA_Herek_Motz_01_04"); //Wiesz dlaczego tu trafiłem? Zabiłem dwunastu ludzi jednej nocy, ot - tak sobie... Hi hi hi!
Npc_SetPermAttitude (self,ATT_ANGRY);
AI_StopProcessInfos (self);
};
// **************************************************
// Anlegen!
// **************************************************
INSTANCE DIA_Herek_Anlegen (C_INFO)
{
npc = Vlk_511_Herek;
nr = 2;
condition = DIA_Herek_Anlegen_Condition;
information = DIA_Herek_Anlegen_Info;
permanent = 1;
description = "Myślisz, że taki twardziel z ciebie? Może spróbujesz szczęścia ze mną?!";
};
FUNC INT DIA_Herek_Anlegen_Condition()
{
if ( (Npc_KnowsInfo(hero,DIA_Herek_Motz)) || (Npc_KnowsInfo(hero,DIA_Herek_Bully)) )
{
return 1;
};
};
FUNC VOID DIA_Herek_Anlegen_Info()
{
AI_Output (other, self,"DIA_Herek_Anlegen_15_00"); //Myślisz, że taki twardziel z ciebie? Może spróbujesz szczęścia ze mną?!
AI_Output (self, other,"DIA_Herek_Anlegen_01_01"); //Chcesz dostać w czapę? Cóż, nasz klient - nasz pan!
AI_StopProcessInfos (self);
Npc_SetTarget(self,other);
AI_StartState(self,ZS_ATTACK,1,"");
};
npc przyklad:
Spoiler
instance VLK_511_Herek (Npc_Default)
{
//-------- primary data --------
name = "Herek";
npctype = npctype_Main;
guild = GIL_NONE;
level = 2;
voice = 1;
id = 511;
//-------- abilities --------
attribute[ATR_STRENGTH] = 13;
attribute[ATR_DEXTERITY] = 10;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 64;
attribute[ATR_HITPOINTS] = 64;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Tired.mds");
// body mesh, head mesh, 70hairmesh, face-tex, hair-tex, skin
Mdl_SetVisualBody (self,"hum_body_Naked0",2,1,"Hum_Head_Pony", 105, 3, VLK_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness (self, 0);
self.aivar[AIV_IMPORTANT] = TRUE;
fight_tactic = FAI_HUMAN_COWARD;
//-------- Talents --------
////Npc_SetTalentSkill (self, NPC_TALENT_1H,1);
//-------- inventory --------
EquipItem (self, ItMw_1h_Nailmace_01);
CreateInvItem (self, ItMwPickaxe);
CreateInvItem (self, ItMi_Stuff_Barbknife_01);
CreateInvItems (self, ItMinugget,4);
CreateInvItem (self, ItLsTorch);
//-------------Daily Routine-------------
daily_routine = Rtn_start_511;
};
FUNC VOID Rtn_start_511 ()
{
TA_Sleep (22,00,07,00,"OCR_HUT_62");
TA_Boss (07,00,08,00,"OCR_OUTSIDE_HUT_62");
TA_Smalltalk (08,00,12,00,"OCR_OUTSIDE_HUT_63_SMALLTALK");
TA_Smith_Sharp (12,00,17,00,"OCR_OUTSIDE_HUT_63_SMALLTALK");
TA_SitAround (17,00,22,00,"OCR_OUTSIDE_HUT_62");
};
I gdzie w notepad++ jest ta opcja że mogę zamienic kazdy tekst na raz.
Np. caly folder NPC