Untitled
Posted on April 15, 2010, 6:32 am UTC anonymously (about 1 year ago)Code (highlighted for D)
- // Diese Datei wurde automatisch durch den Miranda Dialog Creator erstellt!
- // Sie sollte nicht manuell editiert werden, da Änderungen beim erneuten Aufruf
- // des Creators überschrieben werden!
- VAR int schlafenTag;
- // **************************************************
- instance Friedrich_Gerettet (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_Gerettet_Condition;
- information = Friedrich_Gerettet_Info;
- important = TRUE;
- permanent = FALSE;
- };
- func int Friedrich_Gerettet_Condition()
- {
- if ((Npc_IsDead (Prolog_Wolf1) && Npc_IsDead (Prolog_Wolf2) && Npc_IsDead (Prolog_Wolf3)))
- {
- return TRUE;
- };
- };
- func void Friedrich_Gerettet_Info()
- {
- AI_Output(other, self, "Friedrich_Gerettet_Info_15_01"); // (Schnauf) ... Danke... Ich danke euch.
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_02"); // Was zum Teufel machst du mitten in der Nacht hier? Warte mal... Kenn ich dich überhaupt?
- AI_Output(other, self, "Friedrich_Gerettet_Info_15_03"); // Ich denke nicht, ich komme aus Königstein. Mein Name ist Mattheo.
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_04"); // Und was macht ein Städter mitten in der Nacht hier?
- AI_Output(other, self, "Friedrich_Gerettet_Info_15_05"); // Ich bin Flüchtling. Wegen eines dummen Zufalls werde ich jetzt gesucht.
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_06"); // Was wird dir vorgeworfen?
- AI_Output(other, self, "Friedrich_Gerettet_Info_15_07"); // Zauberei.
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_08"); // Pah, natürlich. Genau das ist einer der Gründe, warum ich nicht mehr in der Stadt wohne.
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_09"); // Hier gibt es keine Fanatiker, die dich gleich wegen irgendwelchen Humbug mit dem Teufel in Verbindung bringen.
- AI_Output(other, self, "Friedrich_Gerettet_Info_15_10"); // Gibt es denn noch mehr Menschen hier im Tal?
- AI_Output(self, other, "Friedrich_Gerettet_Info_12_11"); // (Kurzes Lachen) Hier gibt es ein ganzes Dorf!
- };
- // **************************************************
- instance Friedrich_DorfWeit (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_DorfWeit_Condition;
- information = Friedrich_DorfWeit_Info;
- important = FALSE;
- permanent = FALSE;
- description = "Ist das Dorf weit von hier?";
- };
- func int Friedrich_DorfWeit_Condition()
- {
- if (Npc_KnowsInfo(hero, Friedrich_Gerettet))
- {
- return TRUE;
- };
- };
- func void Friedrich_DorfWeit_Info()
- {
- AI_Output(other, self, "Friedrich_DorfWeit_Info_15_01"); // Ist das Dorf weit von hier?
- AI_Output(self, other, "Friedrich_DorfWeit_Info_12_02"); // Nein.
- AI_Output(other, self, "Friedrich_DorfWeit_Info_15_03"); // Kannst du mich hinführen?
- AI_Output(self, other, "Friedrich_DorfWeit_Info_12_04"); // Das werde ich, allerdings erst morgen. Denn so, wie du aussiehst, solltest du dich erstmal ausruhen. Folge mir.
- B_LogEntry(TOPIC_DerFremde, "Was für ein Tag! Erst die Flucht in die Berge, und dann werde ich noch des Nachts von Wölfen angegriffen! Gott sei Dank, dass ein Jäger in der Nähe war, und mich vor ihnen gerettet hat. Jetzt sollte ich sein Angebot annehmen und ihm folgen.");
- Npc_ExchangeRoutine(self, "GuideHuette"); //Führt den Helden zu seiner (Friedrich's) Hütte
- AI_StopProcessInfos(self);
- };
- // **************************************************
- instance Friedrich_GehSchlafen (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_GehSchlafen_Condition;
- information = Friedrich_GehSchlafen_Info;
- important = TRUE;
- permanent = FALSE;
- };
- func int Friedrich_GehSchlafen_Condition()
- {
- if (Npc_GetDistToWP(self,"NW_Friedrich_Huette") < 300)
- {
- return TRUE;
- };
- };
- func void Friedrich_GehSchlafen_Info()
- {
- AI_Output(self, other, "Friedrich_GehSchlafen_Info_12_01"); // So, geh in die Hütte, dort findest du mein Bett.
- AI_Output(other, self, "Friedrich_GehSchlafen_Info_15_02"); // Was ist mit euch?
- AI_Output(self, other, "Friedrich_GehSchlafen_Info_12_03"); // Ich bleibe die Nacht auf. Wer weiß, wer sich heute Nacht außer dir noch hier draußen rumtreibt.
- AI_Output(other, self, "Friedrich_GehSchlafen_Info_15_04"); // Ich danke euch.
- B_LogEntry(TOPIC_DerFremde, "Endlich in Sicherheit. Ich sollte mich nun hinlegen und mich von der Flucht erholen.");
- Npc_ExchangeRoutine (self, Start);
- schlafenTag = Wld_GetDay (); //Speichert den aktuellen Tag
- };
- // **************************************************
- instance Friedrich_GuideMeToDorfGleicherTag (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_GuideMeToDorfGleicherTag_Condition;
- information = Friedrich_GuideMeToDorfGleicherTag_Info;
- important = FALSE;
- permanent = TRUE;
- description = "Führe mich zum Dorf.";
- };
- func int Friedrich_GuideMeToDorfGleicherTag_Condition()
- {
- if ((Npc_KnowsInfo(hero, Friedrich_GehSchlafen)) && (Wld_GetDay () == schlafenTag || (Wld_GetDay ()+1 && Wld_GetTime () < 600)))
- {
- return TRUE;
- };
- };
- func void Friedrich_GuideMeToDorfGleicherTag_Info()
- {
- AI_Output(other, self, "Friedrich_GuideMeToDorfGleicherTag_Info_15_01"); // Führe mich zum Dorf.
- AI_Output(self, other, "Friedrich_GuideMeToDorfGleicherTag_Info_12_02"); // Heute nicht, ruh dich erstmal bis morgen aus.
- };
- // **************************************************
- instance Friedrich_GuideMeToDorf (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_GuideMeToDorf_Condition;
- information = Friedrich_GuideMeToDorf_Info;
- important = FALSE;
- permanent = FALSE;
- description = "Gut, bringt mich in das Dorf.";
- };
- func int Friedrich_GuideMeToDorf_Condition()
- {
- if ((Npc_KnowsInfo(hero, Friedrich_GehSchlafen)) && (Wld_GetDay () > schlafenTag && Wld_IsAfterTime (600)))
- {
- return TRUE;
- };
- };
- func void Friedrich_GuideMeToDorf_Info()
- {
- AI_Output(other, self, "Friedrich_GuideMeToDorf_Info_15_01"); // Gut, bringt mich in das Dorf.
- AI_Output(self, other, "Friedrich_GuideMeToDorf_Info_12_02"); // Folge mir!
- Npc_ExchangeRoutine (self, "GuideDorf");
- B_LogEntry(TOPIC_DerFremde, "Der Jäger führt mich jetzt zum Dorf. Ich hoffe, ich darf dort bleiben. Ich wüsste sonst nicht, wohin ich gehen sollte...");
- AI_StopProcessInfos(self);
- };
- // **************************************************
- instance Friedrich_WieGehts (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_WieGehts_Condition;
- information = Friedrich_WieGehts_Info;
- important = TRUE;
- permanent = FALSE;
- };
- func int Friedrich_WieGehts_Condition()
- {
- if ((Wld_GetDay () > schlafenTag && Wld_IsAfterTime (600) && MIS_WillkommenImDorf == LOG_RUNNING))
- {
- return TRUE;
- };
- };
- func void Friedrich_WieGehts_Info()
- {
- AI_Output(self, other, "Friedrich_WieGehts_Info_12_01"); // Guten Morgen! Wie gehts dir?
- AI_Output(other, self, "Friedrich_WieGehts_Info_15_02"); // Danke, schon besser.
- AI_Output(self, other, "Friedrich_WieGehts_Info_12_03"); // Gut. Hier, iss etwas.
- CreateInvItems(self, ItFo_Bread, 1);
- B_GiveInvItems(self, other, ItFo_Bread, 1);
- AI_UseItem (hero, ItFo_Bread);
- AI_Output(other, self, "Friedrich_WieGehts_Info_15_04"); // Danke.
- AI_Output(self, other, "Friedrich_WieGehts_Info_12_05"); // Ich werde dich nun ins Dorf bringen. Verhalte dich unaufällig bis wir bei Martin sind.
- };
- // **************************************************
- instance Friedrich_WerIstMartin (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_WerIstMartin_Condition;
- information = Friedrich_WerIstMartin_Info;
- important = FALSE;
- permanent = FALSE;
- description = "Wer ist Martin?";
- };
- func int Friedrich_WerIstMartin_Condition()
- {
- if (Npc_KnowsInfo(hero, Friedrich_WieGehts))
- {
- return TRUE;
- };
- };
- func void Friedrich_WerIstMartin_Info()
- {
- AI_Output(other, self, "Friedrich_WerIstMartin_Info_15_01"); // Wer ist Martin?
- AI_Output(self, other, "Friedrich_WerIstMartin_Info_12_02"); // Er ist der Dorfführer. Er wird entscheiden, ob du bleiben darfst oder nicht. Benimm dich, dann kann dir eigentlich nichts passieren.
- };
- // **************************************************
- instance Friedrich_Gottesdienst (C_INFO)
- {
- npc = Friedrich;
- condition = Friedrich_Gottesdienst_Condition;
- information = Friedrich_Gottesdienst_Info;
- important = TRUE;
- permanent = FALSE;
- };
- func int Friedrich_Gottesdienst_Condition()
- {
- if (Npc_GetDistToWP (self, "NW_dorf_kirche_eingang" < 200))
- {
- return TRUE;
- };
- };
- func void Friedrich_Gottesdienst_Info()
- {
- AI_Output(self, other, "Friedrich_Gottesdienst_Info_12_01"); // Oh...
- AI_Output(other, self, "Friedrich_Gottesdienst_Info_15_02"); // Was ist denn?
- AI_Output(self, other, "Friedrich_Gottesdienst_Info_12_03"); // Es ist gerade Gottesdienst.
- AI_Output(other, self, "Friedrich_Gottesdienst_Info_15_04"); // Ich verstehe. Dann warten wir hier.
- AI_Output(self, other, "Friedrich_Gottesdienst_Info_12_05"); // Tut mir Leid, Mattheo. Ich kann hier nicht warten, ich muss zurück zu meiner Hütte. Warte hier, bis der Gottesdienst zu ende ist.
- AI_Output(self, other, "Friedrich_Gottesdienst_Info_12_06"); // Dann frag nach Martin, mit ihm wirst du alles weitere besprechen.
- B_LogEntry(TOPIC_DerFremde, "Ich soll nun warten, bis der Gottesdient vorbei ist, und dann mit Martin sprechen. Er wird entscheiden, was mit mir passiert.");
- AI_Output(other, self, "Friedrich_Gottesdienst_Info_15_07"); // Gut, ich danke dir.
- AI_Output(self, other, "Friedrich_Gottesdienst_Info_12_08"); // Viel Glück, Mattheo.
- Npc_ExchangeRoutine (self, "Start"); //Friedrich geht zurück zu seiner Hütte
- RegisterDelayedFunc("GeheAusKircheAll", 15);
- AI_StopProcessInfos(self);
- };