Показать сообщение отдельно
Старый 02.09.2010, 17:54   #2334
orebaron25

AGFC
Гость
 
Сообщений: n/a

По умолчанию Re: М: Скриптинг в Готике

instance DIA_Fingers_EXIT(C_Info)
{
     npc = VLK_4201_Fingers;
     nr = 999;
     condition = DIA_Fingers_EXIT_Condition;
     information = DIA_Fingers_EXIT_Info;
     permanent = TRUE;
     description = Dialog_Ende;
};


func int DIA_Fingers_EXIT_Condition()
{
     return TRUE;
};

func void DIA_Fingers_EXIT_Info()
{
     AI_StopProcessInfos(self);
};


instance DIA_Fingers_PICKPOCKET(C_Info)
{
     npc = SLD_1001_Fingers;
     nr = 900;
     condition = DIA_Fingers_PICKPOCKET_Condition;
     information = DIA_Fingers_PICKPOCKET_Info;
     permanent = TRUE;
     description = Pickpocket_60;
};


func int DIA_Fingers_PICKPOCKET_Condition()
{
     return C_Beklauen(60,65);
};

func void DIA_Fingers_PICKPOCKET_Info()
{
     Info_ClearChoices(DIA_Fingers_PICKPOCKET);
     Info_AddChoice(DIA_Fingers_PICKPOCKET,Dialog_Back ,DIA_Fingers_PICKPOCKET_B
ACK);
     Info_AddChoice(DIA_Fingers_PICKPOCKET,DIALOG_PICK POCKET,DIA_Fingers_PICKPO
CKET_DoIt);
};

func void DIA_Fingers_PICKPOCKET_DoIt()
{
     B_Beklauen();
     Info_ClearChoices(DIA_Fingers_PICKPOCKET);
};

func void DIA_Fingers_PICKPOCKET_BACK()
{
     Info_ClearChoices(DIA_Fingers_PICKPOCKET);
};


instance DIA_Fingers_Hello(C_Info)
{
     npc = VLK_4201_Fingers;
     nr = 2;
     condition = DIA_Fingers_Hello_Condition;
     information = DIA_Fingers_Hello_Info;
     permanent = FALSE;
     description = "Эй , ты!";
};


func int DIA_Fingers_Hello_Condition()
{
     return TRUE;
};

func void DIA_Fingers_Hello()
{
     AI_Output(self,other,"DIA_Fingers_Hello_15_50 ");      //Допустим здесь текст.
     AI_Output(self,other,"DIA_Fingers_Hello_03_00 ");      //
     AI_Output(self,other,"DIA_Fingers_Hello_03_01 ");      //  
     AI_Output(other,self,"DIA_Fingers_Hello_15_00 ");      //
     AI_Output(self,other,"DIA_Fingers_Hello_03_02 ");      //
     AI_Output(self,other,"DIA_Fingers_Hello_03_03 ");      //
     AI_Output(self,other,"DIA_Fingers_Hello_03_04 ");      //
     Info_ClearChoices(DIA_Fingers_Hello);
};

instance DIA_Fingers_What(C_Info)
{
     npc = VLK_4201_Fingers;
     nr = 2;
     condition = DIA_Fingers_What_Condition;
     information = DIA_Fingers_What_Info;
     permanent = FALSE;
     description = "Что ты здесь делаешь?";
};


func int DIA_Fingers_What_Condition()
{
     return TRUE;
};

func void DIA_Fingers_What()
{
     AI_Output(other,self,"DIA_Fingers_What_15_01" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_05" );      //
     AI_Output(other,self,"DIA_Fingers_What_15_02" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_06" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_07" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_08" );      //
     AI_Output(other,self,"DIA_Fingers_What_15_03" );      //
   AI_Output(self,other,"DIA_Fingers_What_03_09" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_10" );      //
     AI_Output(self,other,"DIA_Fingers_What_03_11" );  //


Выдает ошибку - Redefined identifier - DIA_FINGERS_HELLO

Что не так?????
Ответить с цитированием