|
Re: М: Скриптинг в Готике
Люди нужна помощь, я сделал диалог непися, вроде как все правильно. Захожу в игру пытаюсь с ним поговорить, а он что то машет руками и не говорит
Скрипт диалога *см. спойлер
[spoiler] instance DIA_Albert_q (C_Info) { * * *npc = NONE_3555_Albert; * * *nr = 2; * * *condition = dia_Albert_q_condition; * * *information = dia_Albert_q_info; * * *permanent = FALSE; * * *important = FALSE; * * *description = "Ты кто? И что тут делаешь?"; };
func int dia_Albert_q_condition() { * * *return TRUE; };
func void dia_Albert_q_info() { * * *AI_Output(other,self,"DIA_Albert_q_3_01"); //Ты кто? И что тут делаешь? * * *AI_Output(self,other,"DIA_Albert_q_15_00"); //Привет друг. Надеюсь ты меня помнишь? * * *AI_Output(other,self,"DIA_Albert_q_3_02"); //Извини, не помню, а ты кто? * * *AI_Output(self,other,"DIA_Albert_q_15_01"); //Я был штрафником в барьере в новом лагере. };
instance DIA_Albert_q2 (C_Info) { * * *npc = NONE_3555_Albert; * * *nr = 2; * * *condition = dia_Albert_q2_condition; * * *information = dia_Albert_q2_info; * * *permanent = FALSE; * * *important = FALSE; * * *description = "И как ты выбрался от туда? "; };
func int dia_Albert_q2_condition() { * * *return TRUE; };
func void dia_Albert_q2_info() { * * *AI_Output(other,self,"DIA_Albert_q2_3_01"); //И как ты выбрался от туда? * * *AI_Output(self,other,"DIA_Albert_q2_15_00"); //(Вспоминает) О... это долгая история... };
instance DIA_Albert_q3 (C_Info) { * * *npc = NONE_3555_Albert; * * *nr = 2; * * *condition = dia_Albert_q3_condition; * * *information = dia_Albert_q3_info; * * *permanent = FALSE; * * *important = FALSE; * * *description = "А почему ты в башне Ксардаса?"; };
func int dia_Albert_q3_condition() { * * *return TRUE; };
func void dia_Albert_q3_info() { * * *AI_Output(other,self,"DIA_Albert_q2_3_01"); //А почему ты в башне Ксардаса? * * *AI_Output(self,other,"DIA_Albert_q2_15_00"); //Ксардас мой друг, я ему помогал башню строить. * * *AI_Output(self,other,"DIA_Albert_q2_15_01"); //Вот возьми в подарок от меня, всеравно я не умею ею пользоваться, может тебе она пригодиться. * * *b_giveinvitems(self,other,ItMw_Urizele,1); //непись даёт нам подарок Уризель!
};
instance NONE_3555_Albert_EXIT(C_Info) { * * *npc = NONE_3555_Albert; * * *nr = 999; * * *condition = NONE_3555_Albert_EXIT_Condition; * * *information = NONE_3555_Albert_EXIT_Info; * * *permanent = TRUE; * * *description = "Конец"; }; func int NONE_3555_Albert_EXIT_Condition() { * * *return TRUE; }; func void NONE_3555_Albert_EXIT_Info() { * * *AI_StopProcessInfos(self); }; [/spoiler]
|