|
Re: Скриптинг в Готике
В папке Dialoge прописал следующее: // ************************************************** ********** // EXIT // ************************************************** ********** INSTANCE DIA_Chic_Kap1_EXIT(C_INFO) { npc = NONE_666_Chic; nr = 999; condition = DIA_Chic_Kap1_EXIT_Condition; information = DIA_Chic_Kap1_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Chic_Kap1_EXIT_Condition() { if (Kapitel == 1) { return TRUE; }; }; FUNC VOID DIA_Chic_Kap1_EXIT_Info() { AI_StopProcessInfos (self); };
// ************************************************** ********** // PICK POCKET // ************************************************** **********
INSTANCE DIA_Chic_PICKPOCKET (C_INFO) { npc = NONE_666_Chic; nr = 900; condition = DIA_Chic_PICKPOCKET_Condition; information = DIA_Chic_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_100; };
FUNC INT DIA_Chic_PICKPOCKET_Condition() { C_Beklauen (95, 350); }; FUNC VOID DIA_Chic_PICKPOCKET_Info() { Info_ClearChoices (DIA_Chic_PICKPOCKET); Info_AddChoice (DIA_Chic_PICKPOCKET, DIALOG_BACK ,DIA_Chic_PICKPOCKET_BACK); Info_AddChoice (DIA_Chic_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Chic_PICKPOCKET_DoIt); };
func void DIA_Chic_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Chic_PICKPOCKET); }; func void DIA_Chic_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Chic_PICKPOCKET); };_PICKPOCKET (C_INFO) { npc = NONE_666_Chic; nr = 900; condition = DIA_Chic_PICKPOCKET_Condition; information = DIA_Chic_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_100; };
FUNC INT DIA_Chic_PICKPOCKET_Condition() { C_Beklauen (95, 350); }; FUNC VOID DIA_Chic_PICKPOCKET_Info() { Info_ClearChoices (DIA_Chic_PICKPOCKET); Info_AddChoice (DIA_Chic_PICKPOCKET, DIALOG_BACK ,DIA_Chic_PICKPOCKET_BACK); Info_AddChoice (DIA_Chic_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Chic_PICKPOCKET_DoIt); };
func void DIA_Chic_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Chic_PICKPOCKET); }; func void DIA_Chic_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Chic_PICKPOCKET); };
instance DIA_Chic_Forest (C_INFO) { npc = NONE_666_Chic; nr = 9; condition = DIA_Chic_Forest_Condition; information = DIA_Chic_Forest_Info;
description = "Ты можешь помочь мне дайти до усадьбы Онара? ";
};
func void DIA_Chic_Forest_info () { AI_Output (other, self, "DIA_Chic_RangerHelp_Forest_15_00"); //Ты можешь помочь мне дайти до усадьбы Онара? AI_Output (self, other, "DIA_Chic_RangerHelp_Forest_09_01"); //Хорошо? }; instance DIA_Chic_GoNow (C_INFO) { npc = NONE_666_Chic; nr = 10; condition = DIA_Chic_GoNow_Condition; information = DIA_Chic_GoNow_Info; permanent = TRUE; description = " Okay, пошли. "; }; func void DIA_Chic_GoNow_Onar () { AI_Output (other, self, "DIA_Zaraza_GoNow_Onar_15_00"); // К Onars двор. ChicGuide_ZuOnar = TRUE; Npc_ExchangeRoutine (self, "GUIDE"); DIA_Chic_GoNow_GoingConditions (); };
func void DIA_Chic_GoNow_warte () { Info_ClearChoices (DIA_Zaraza_GoNow); }; Cохранил.Закомпелировал в спайсере,он выдаёт несколько(около 5) ошибок.Что я сделал не правильно?Делал по примеру Ларса(многое мог сделать не правильно).
|