Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=====================*\
- |* DiasEx Dialogdatei *|
- |* 15.01.2012 19:43:45 *|
- \*=====================*/
- //--------------------------
- // Variablen
- //--------------------------
- var int Namespace2_var;
- //--------------------------
- // TestDialoge_DIA1
- //--------------------------
- instance TestDialoge_DIA1(C_Info) {
- npc = PAL_100_Friend;
- info = TestDialoge_DIA1_Info;
- condition = TestDialoge_DIA1_Condition;
- description = "Hi, Arto!";
- };
- func int TestDialoge_DIA1_Condition() {
- return !Npc_KnowsInfo(hero, TestDialoge_DIA1);
- };
- func int TestDialoge_DIA1_Blubber_Condition() {
- return Namespace2.var;
- };
- func int TestDialoge_DIA1_Blobber_Condition() {
- return Npc_KnowsInfo(hero, TestDialoge_DIA2);
- };
- func void TestDialoge_DIA1_Info() {
- AI_Output(other, self, "DIA_TestDialoge_DIA1_hero_00");//Hi, Arto!
- AI_Output(self, other, "DIA_TestDialoge_DIA1_Arto_01");//Hallo, Held.
- if(TestDialoge_DIA1_Blubber_Condition()) {
- Info_AddChoice(TestDialoge_DIA1, "Okay, ich geh dann wieder.", TestDialoge_DIA1_Blubber);
- };
- if(TestDialoge_DIA1_Blobber_Condition()) {
- Info_AddChoice(TestDialoge_DIA1, "Wir haben schon gehandelt, ne?", TestDialoge_DIA1_Blobber);
- };
- };
- func void TestDialoge_DIA1_Blubber() {
- AI_Output(other, self, "DIA_TestDialoge_DIA1_Blubber_hero_00");//Okay, ich geh dann wieder.
- AI_Output(self, other, "DIA_TestDialoge_DIA1_Blubber_Arto_01");//Fein.
- };
- func void TestDialoge_DIA1_Blobber() {
- AI_Output(other, self, "DIA_TestDialoge_DIA1_Blobber_hero_00");//Wir haben schon gehandelt, ne?
- AI_Output(self, other, "DIA_TestDialoge_DIA1_Blobber_Arto_01");//Jup.
- Info_ClearChoices(TestDialoge_DIA1);
- };
- //--------------------------
- // TestDialoge_DIA2
- //--------------------------
- instance TestDialoge_DIA2(C_Info) {
- npc = PAL_100_Friend;
- info = TestDialoge_DIA2_Info;
- condition = TestDialoge_DIA2_Condition;
- permanent = true;
- trade = true;
- description = "Ich möchte mit dir tauschen.";
- };
- func int TestDialoge_DIA2_Condition() {
- return Arto.attribute[ATR_HITPOINTS];
- };
- func void TestDialoge_DIA2_Info() {
- AI_Output(other, self, "DIA_TestDialoge_DIA2_hero_00");//Ich möchte mit dir tauschen.
- AI_Output(self, other, "DIA_TestDialoge_DIA2_Arto_01");//Nur zu:
- };
Add Comment
Please, Sign In to add comment