Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Question about dialogues  (Read 3829 times)

0 Members and 1 Guest are viewing this topic.

benkovici

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Question about dialogues
« on: February 05, 2009, 07:37:16 PM »

Hello! For example in entity.script I have this dialogue:

global PhoneRing;
on "RightClick"
{
  if (!PhoneRing)
  {
 actor.Talk("There is nothing I can do. It's broken");
 }
 else
{
actor.Talk("Hello...");
 this.Talk("Why did you call me?");
 actor.Talk("I...I didn't...");
 Sleep(800);
 actor.Talk("Who are you anyway?");
}
}
----------
Is it possible to do that the dialogue would be talked only once without using Response box cause in this case I don't want the actor to chose responses ?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Question about dialogues
« Reply #1 on: February 05, 2009, 10:36:15 PM »

I don't understand the question. There's no response selection in your code.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

benkovici

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Re: Question about dialogues
« Reply #2 on: February 07, 2009, 01:02:48 PM »

I don't understand the question. There's no response selection in your code.

Ok. let me explain once again. In my game after the actor clicks on tomb the phone starts to ring. When he right clicks the phone these lines are spoken:

global PhoneRing;
on "RightClick"
{
  if (!PhoneRing)
  {
 actor.Talk("There is nothing I can do. It's broken");
 }
 else
{
actor.Talk("Hello...");
 this.Talk("Why did you call me?");
 actor.Talk("I...I didn't...");
 Sleep(800);
 actor.Talk("Who are you anyway?");
}
}
----------
I would like these lines to be spoken only once in game cause each time the actor clicks the phone he speaks them again. Can you tell me please if it's possible?
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Question about dialogues
« Reply #3 on: February 07, 2009, 01:37:59 PM »

Code: [Select]
global PhoneRing, PhonePicked;
on "RightClick"
{
  if (!PhoneRing)
  {
    actor.Talk("There is nothing I can do. It's broken");
   }
   else if (!PhonePicked)
  {
    PhonePicked = true;
    actor.Talk("Hello...");
    this.Talk("Why did you call me?");
    actor.Talk("I...I didn't...");
    Sleep(800);
    actor.Talk("Who are you anyway?");
  }
}

That should work.
Logged

benkovici

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Re: Question about dialogues
« Reply #4 on: February 08, 2009, 04:37:21 PM »

Code: [Select]
global PhoneRing, PhonePicked;
on "RightClick"
{
  if (!PhoneRing)
  {
    actor.Talk("There is nothing I can do. It's broken");
   }
   else if (!PhonePicked)
  {
    PhonePicked = true;
    actor.Talk("Hello...");
    this.Talk("Why did you call me?");
    actor.Talk("I...I didn't...");
    Sleep(800);
    actor.Talk("Who are you anyway?");
  }
}

That should work.

Thanks for help!! I'll try this
Logged
 

Page created in 0.146 seconds with 23 queries.