Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Removed a question from dialogue.  (Read 1969 times)

0 Members and 1 Guest are viewing this topic.

ugo

  • Вредная ворона
  • Regular poster
  • ***
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 152
  • Делаю кве?т.
    • View Profile
    • Хранители традиций УниВанга
Removed a question from dialogue.
« on: July 27, 2012, 12:47:12 PM »

Please help.
I created two additional branches in the dialogue.
And now when I answer a question in the same branch.
From the list of the other branches are also removed a question.

Code: [Select]
global DecreeEnd;
global TemaEnd;


////////////////////////////////////////////////////////////////////////////////
function SecretaryDialogue()
{
  var Responses;
  var Selected;
  var Loop = true;

  while(Loop)
  {
        // prepare the sentences
        Responses[0] = "question?";
Responses[1] = "question?";
Responses[2] = "question?";

        Responses[3] = "Exit.";

        // fill the response box
        if (PrinterBlank == 1 && DecreeEnd <= 5)Game.AddResponse(17, Responses[17]);
if (NewsPaperArticle1 == 1 && TemaEnd <= 3)Game.AddResponse(18, Responses[18]);
if (ConHit == 2 && HandleUse == false) Game.AddResponse(2, Responses[2]);


Game.AddResponse(3, Responses[3]);



        // let the player choose one
Selected = Game.GetResponse();

       

        // now let the Secretary reply depending on the selected sentence
        if(Selected == 0)
        {
          actor.Talk("Text");
  this.Talk("Text");
        }

        else if(Selected == 1)
        {
          actor.Talk("Text");
  this.Talk("Text");
          SecretaryDialogue2()
        }

        else if(Selected == 2)
        {
          actor.Talk("Text");
  this.Talk("Text");
          SecretaryDialogue3()
        }

else if(Selected == 3)
        {
          actor.Talk("Text");
  this.Talk("Text");
          Loop = false;
        }
       }
      }



////////////////////////////////////////////////////////////////////////////////
function SecretaryDialogue2()
{
  var Re;
  var Se;
  var Lo = true;

  while(Lo)
  {

       Re[0] = "question?";
       Re[1] = "question?";
       Re[2] = "question?";
   
       Re[3] = "Exit.";

       Game.AddResponseOnceGame(0, Re[0]);
       Game.AddResponseOnceGame(1, Re[1]);
       Game.AddResponseOnceGame(2, Re[2]);
       Game.AddResponseOnceGame(3, Re[3]);
   
       Game.AddResponse(4, Res[4]);


       Se = Game.GetResponse();


       if(Se == 0)
       {
          actor.Talk("Text");
  this.Talk("Text");

  TemaEnd = TemaEnd+1;
  if (TemaEnd >= 4)
  {
    Lo = false;
actor.Talk("Теперь, мне в?ё про них понятно.");
  }
        }
   

else if(Se == 1)
        {
          actor.Talk("Text");
  this.Talk("Text");
  TemaEnd = TemaEnd+1;
  if (TemaEnd >= 4)
  {
    Lo = false;
actor.Talk("Теперь, мне в?ё про них понятно.");
  }
        }

        else if(Se == 2)
        {
          actor.Talk("Text");
  this.Talk("Text");
  TemaEnd = TemaEnd+1;
  if (TemaEnd >= 4)
  {
    Lo = false;
actor.Talk("Теперь, мне в?ё про них понятно.");
  }
        }

else if(Se == 3)
        {
          actor.Talk("Text");
  this.Talk("Text");
  TemaEnd = TemaEnd+1;
  if (TemaEnd >= 4)
  {
    Lo = false;
actor.Talk("Теперь, мне в?ё про них понятно.");
  }
        }



else if(Se == 4)
{
          actor.Talk("Text");
  this.Talk("Text");
  Lo = false;
}
       }
      }

////////////////////////////////////////////////////////////////////////////////
function SecretaryDialogue3()
{
      var Res;
      var Sel;
      var Loo = true;

      while(Loo)
      {
        // prepare the sentences
        Res[0] = "question?";
        Res[1] = "question?";
        Res[2] = "question?";
Res[3] = "question?";
Res[4] = "question?";

        Res[5] = "Exit.";

        // fill the response box
        Game.AddResponseOnceGame(0, Res[0]);
        Game.AddResponseOnceGame(1, Res[1]);
        Game.AddResponseOnceGame(2, Res[2]);
Game.AddResponseOnceGame(3, Res[3]);
Game.AddResponseOnceGame(4, Res[4]);
Game.AddResponse(5, Res[5]);

        Selected = Game.GetResponse();


        if(Sel == 0)
        {
  actor.Talk("Text");
  this.Talk("Text");
  DecreeEnd = DecreeEnd+1;
        }
   
else if(Sel == 1)
        {
  actor.Talk("Text");
  this.Talk("Text");
  DecreeEnd = DecreeEnd+1;
        }

else if(Sel == 2)
        {
  actor.Talk("Text");
  this.Talk("Text");
  DecreeEnd = DecreeEnd+1;
        }

else if(Sel == 3)
        {
  actor.Talk("Text");
  this.Talk("Text");
  DecreeEnd = DecreeEnd+1;
  Loo = false;
        }

else if(Sel == 4)
        {
  actor.Talk("Text");
  this.Talk("Text");
  DecreeEnd = DecreeEnd+1;
        }

else if(Sel == 5)
{
  actor.Talk("Text");
  this.Talk("Text");
  Loo = false;
}
       }
      }
Logged

ugo

  • Вредная ворона
  • Regular poster
  • ***
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 152
  • Делаю кве?т.
    • View Profile
    • Хранители традиций УниВанга
Re: Removed a question from dialogue.
« Reply #1 on: July 30, 2012, 07:47:42 AM »

Anyone? Please help.
Logged

ugo

  • Вредная ворона
  • Regular poster
  • ***
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 152
  • Делаю кве?т.
    • View Profile
    • Хранители традиций УниВанга
Re: Removed a question from dialogue.
« Reply #2 on: July 30, 2012, 09:46:29 AM »

It's okay.
Logged

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 689
    • View Profile
Re: Removed a question from dialogue.
« Reply #3 on: August 01, 2012, 11:12:29 AM »

Sorry, I didn't even understand your question yet. Did you solve it?
Logged
Mooh!

ugo

  • Вредная ворона
  • Regular poster
  • ***
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 152
  • Делаю кве?т.
    • View Profile
    • Хранители традиций УниВанга
Re: Removed a question from dialogue.
« Reply #4 on: August 03, 2012, 01:33:47 PM »

Yes.
Logged
 

Page created in 0.14 seconds with 22 queries.