INSTANCE DIA_mil_320_miliz_Exit (C_Info)
{
npc = mil_320_miliz;
nr = 999;
condition = DIA_mil_320_miliz_Exit_condition;
information = DIA_mil_320_miliz_Exit_info;
permanent = TRUE;
important = FALSE;
description = DIALOG_ENDE;
};
FUNC INT DIA_mil_320_miliz_Exit_condition ()
{
return TRUE;
};
FUNC VOID DIA_mil_320_miliz_Exit_info ()
{
AI_StopProcessInfos(self);
};
INSTANCE DIA_mil_320_miliz_Hello (C_Info)
{
npc = mil_320_miliz;
nr = 2;
condition = DIA_mil_320_miliz_Hello_condition;
information = DIA_mil_320_miliz_Hello_info;
permanent = FALSE;
important = FALSE;
description = "Кто ты?";
};
FUNC INT DIA_mil_320_miliz_Hello_condition ()
{
return TRUE;
};
FUNC VOID DIA_mil_320_miliz_Hello_info ()
{
AI_Output(self,other,"DIA_mil_320_miliz_Hello_15_1"); //Кто ты?
AI_Output(self,other,"DIA_mil_320_miliz_Hello_15_2"); //Меня зовут Джонс.
};
instance DIA_mil_320_miliz_DEX(C_Info)
{
npc = mil_320_miliz;
nr = 20;
condition = DIA_mil_320_miliz_DEX_Condition;
information = DIA_mil_320_miliz_DEX_Info;
permanent = FALSE;
description ="Ты можешь научить меня чему-нибудь?";
};
func int DIA_mil_320_miliz_DEX_Condition()
{
return TRUE;
};
func void DIA_mil_320_miliz_DEX_Info()
{
AI_Output(other,self,"DIA_mil_320_miliz_DEX_15_00"); //Ты можешь меня чему-нибудь научить?
AI_Output(self,other,"DIA_Addon_mil_320_miliz_DEX_Add_09_01"); //Я могу повысить твою силу и ловкость.
AI_Output(other,self,"DIA_mil_320_miliz_DEX_15_00"); //Бесплатно?
AI_Output(self,other,"DIA_Addon_mil_320_miliz_DEX_Add_09_01"); //Да.Лорд Андре отдал такой приказ.
Jons_TeachDEX = TRUE;
Log_CreateTopic(TOPIC_CityTeacher,LOG_NOTE);
B_LogEntry(TOPIC_CityTeacher,"Ополченец Джонс может помочь повысить силу и ловкость");
};
var int mil_320_miliz_MerkeDEX;
var int mil_320_miliz_MerkeSTR;
instance DIA_mil_320_miliz_TEACH(C_Info)
{
npc = mil_320_miliz;
nr = 20;
condition = DIA_mil_320_miliz_TEACH_Condition;
information = DIA_mil_320_miliz_TEACH_Info;
permanent = TRUE;
description ="Тренируй меня.";
};
func int DIA_mil_320_miliz_TEACH_Condition()
{
if(mil_320_miliz_TeachDEX == TRUE)
{
return TRUE;
};
};
func void DIA_mil_320_miliz_TEACH_Info()
{
AI_Output(other,self,"DIA_Addon_mil_320_miliz_Teach_15_00"); //Начнем тренировку
mil_328_miliz_MerkeDEX = other.attribute[ATR_DEXTERITY];
mil_328_miliz_MerkeSTR = other.attribute[ATR_STRENGTH];
Info_ClearChoices(DIA_mil_320_miliz_TEACH);
Info_AddChoice(DIA_mil_320_miliz_TEACH,Dialog_Back,DIA_mil_320_miliz_TEACH_BACK);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_mil_320_miliz_TEACH_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_mil_320_miliz_TEACH_5);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_mil_320_miliz_TEACHSTR_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_mil_320_miliz_TEACHSTR_5);
};
func void DIA_mil_320_miliz_TEACH_BACK()
{
if(other.attribute[ATR_DEXTERITY] >mil_320_miliz_MerkeDEX)
{
AI_Output(self,other,"DIA_mil_320_miliz_TEACH_BACK_09_00"); //А ты уже стал более ловким.
};
if(other.attribute[ATR_STRENGTH] >mil_320_miliz_MerkeSTR)
{
AI_Output(self,other,"DIA_Addon_mil_320_miliz_TEACH_BACK_Add_09_00"); //(оценивающе) Очень неплохо! Можно сказать отлично!
};
Info_ClearChoices(DIA_mil_320_miliz_TEACH);
};
func void DIA_mil_320_miliz_TEACH_1()
{
B_TeachAttributePoints(self,other,ATR_DEXTERITY,1,T_MED);
Info_ClearChoices(DIA_mil_320_miliz_TEACH);
Info_AddChoice(DIA_mil_320_miliz_TEACH,Dialog_Back,DIA_mil_320_miliz_TEACH_BACK);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_mil_320_miliz_TEACH_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_mil_320_miliz_TEACH_5);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_mil_320_miliz_TEACHSTR_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_mil_320_miliz_TEACHSTR_5);
};
func void DIA_mil_328_miliz_TEACH_5()
{
B_TeachAttributePoints(self,other,ATR_DEXTERITY,5,T_MED);
Info_ClearChoices(DIA_mil_320_miliz_TEACH);
Info_AddChoice(DIA_mil_320_miliz_TEACH,Dialog_Back,DIA_mil_320_miliz_TEACH_BACK);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_learnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_mil_320_miliz_TEACH_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_learnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_mil_320_miliz_TEACH_5);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_learnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_mil_320_miliz_TEACHSTR_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_learnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_mil_320_miliz_TEACHSTR_5);
};
func void DIA_mil_320_miliz_TEACHSTR_1()
{
B_TeachAttributePoints(self,other,ATR_STRENGTH,1,T_LOW);
Info_ClearChoices(DIA_mil_328_miliz_TEACH);
Info_AddChoice(DIA_mil_320_miliz_TEACH,Dialog_Back,DIA_mil_320_miliz_TEACH_BACK);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_mil_320_miliz_TEACH_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_mil_320_miliz_TEACH_5);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_mil_320_miliz_TEACHSTR_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_mil_320_miliz_TEACHSTR_5);
};
func void DIA_mil_320_miliz_TEACHSTR_5()
{
B_TeachAttributePoints(self,other,ATR_STRENGTH,5,T_LOW);
Info_ClearChoices(DIA_mil_320_miliz_TEACH);
Info_AddChoice(DIA_mil_320_miliz_TEACH,Dialog_Back,DIA_mil_320_miliz_TEACH_BACK);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX1,B_GetLearnCostAttribute(other,ATR_DEXTERITY)),DIA_mil_320_miliz_TEACH_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnDEX5,B_GetLearnCostAttribute(other,ATR_DEXTERITY) * 5),DIA_mil_320_miliz_TEACH_5);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR1,B_GetLearnCostAttribute(other,ATR_STRENGTH)),DIA_mil_320_miliz_TEACHSTR_1);
Info_AddChoice(DIA_mil_320_miliz_TEACH,B_BuildLearnString(PRINT_LearnSTR5,B_GetLearnCostAttribute(other,ATR_STRENGTH) * 5),DIA_mil_320_miliz_TEACHSTR_5);
};