Author Topic: SOLVED: Two clicks on dialog options  (Read 218 times)

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
SOLVED: Two clicks on dialog options
« on: 16 Apr 2018, 15:48 »
I'm not sure why but it's taking two clicks on dialog options to fire???

3.4.0.14
« Last Edit: 16 Apr 2018, 19:15 by Slasher »

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Two clicks on dialog options
« Reply #1 on: 16 Apr 2018, 15:51 »
I'm not sure why but it's taking two clicks on dialog options to fire???

3.4.0.14

Is it default dialog options or custom rendering? If it is custom rendering, please show the code.

BTW, the possibility also is that you have duplicates of dialog topics, clicking first time displays empty topic which ends instantly, and leads to "real" options with real speech under them.

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Two clicks on dialog options
« Reply #2 on: 16 Apr 2018, 16:09 »
Hi Crimson,

It is a custom dialog gui

set up as:

Add spoiler tag for Hidden:
@S  // Dialog startup entry point
return

@1
  cJones.Walk(cTiger.x+80,cTiger.y+36,eBlock,eWalkableAreas);
  cJones.Loop=1;
  cTiger.Transparency=100;
  aTiger_roar.Play();
  object[0].Visible=true;
  object[0].SetView(34);
  object[0].Animate(2, 4, eRepeat, eNoBlock);
  Wait(10);
  cJonesP.SayAt(50, 0, 1000, "Aghhhhhhhhhhhhhhhhhhhhh!");
  Wait(60);
  RestoreGameSlot(144);

stop
@2
  cJones.Walk(cTiger.x+80,cTiger.y+36,eBlock,eWalkableAreas);
  cJones.Loop=1;
  cJones.LockView(SPEAR);
  cTiger.Transparency=100;
  aTiger_roar.Play();
  object[0].Visible=true;
  object[0].SetView(34);
  object[0].Animate(2, 4, eRepeat, eNoBlock);
  Wait(10);
  cJonesP.SayAt(50, 0, 1000, "Aghhhhhhhhhhhhhhhhhhhhh!");
  Wait(60);
  RestoreGameSlot(144);
   
stop
@3
  cJones.Walk(cTiger.x+80,cTiger.y+36,eBlock,eWalkableAreas);
  cJones.Loop=1;
  object[1].Visible=true;
  Wait(40);
  cTiger.Transparency=100;
  aTiger_roar.Play();
  object[0].Visible=true;
  object[0].SetView(34);
  object[0].Animate(2, 4, eRepeat, eNoBlock);
  Wait(10);
  cJonesP.SayAt(50, 0, 1000, "Aghhhhhhhhhhhhhhhhhhhhh!");
  Wait(60);
  RestoreGameSlot(144);

stop
@4
 Tiger=true;
 
stop
@5
 cJones.Walk(487,709,eBlock,eWalkableAreas);
 cJones.Loop=0;
 Wait(40);
 cJonesP.ChangeRoom(7);
 cJones.ChangeRoom(7,1350,394);
stop

Hope this help..

cheers


Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Two clicks on dialog options
« Reply #3 on: 16 Apr 2018, 16:13 »
It is a custom dialog gui

I need to clarify, is it custom dialog options rendering, when you are using DialogOptionsRenderingInfo in script, or just a usual GUI set for background?

Another question, does it happen with every option or only certain one(s)?

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Two clicks on dialog options
« Reply #4 on: 16 Apr 2018, 16:34 »
Hi Crimson,

just new custom options gui...

with these:

Code: Adventure Game Studio
  1. game.dialog_options_y=11;
  2. game.dialog_options_x=12;
  3.  
  4. // with an 8pxl gap between
  5.  

I'm going over it to see if i spot anything..


Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Two clicks on dialog options
« Reply #5 on: 16 Apr 2018, 17:25 »
This seems to work so far:

Took out script from rooms rep exe and put it in dialog option instead..

so far do good..


Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Two clicks on dialog options
« Reply #6 on: 16 Apr 2018, 17:38 »
Took out script from rooms rep exe and put it in dialog option instead..

And what script was that?

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Two clicks on dialog options
« Reply #7 on: 16 Apr 2018, 17:46 »

Add spoiler tag for Hidden:
Code: Adventure Game Studio
  1. @4
  2.    Tiger=true;
  3.  
  4.    cJonesP.SayAt(50, 0, 1000, "I read that when faced with a Tiger you should...");
  5.    cJonesP.SayAt(50, 0, 1000, "...make yourself big, try to look and feel brave and make a noise.");
  6.    cJonesP.SayAt(50, 0, 1000, "Maybe it's time to try it out?");
  7.    cJonesP.SayAt(50, 0, 1000, "...or be eaten!");
  8.    cJones.Walk(cTiger.x+80,cTiger.y+36,eBlock,eWalkableAreas);
  9.  
  10.    cJones.Loop=1;
  11.    cJonesP.SayAt(50, 0, 1000, "Hey! Hold on!");
  12.    cJonesP.SayAt(50, 0, 1000, "This is not the way is it!");
  13.    cJonesP.SayAt(50, 0, 1000, "You don't want to eat me!");
  14.    cJonesP.SayAt(50, 0, 1000, "I'm all skin and bones!");
  15.  
  16.    aTiger_roar.Stop();
  17.    object[0].SetView(34);
  18.    object[0].Animate(1, 4, eRepeat, eNoBlock);
  19.  
  20.    cTiger.Transparency=100;
  21.    object[0].Visible=true;
  22.    cJonesP.SayAt(50, 0, 1000, "Hey! The Tiger is playing with me like my cat, Tibbles does.");
  23.    cJonesP.SayAt(50, 0, 1000, "Good boy.");
  24.    
  25.    aDANGER1.Stop();
  26.    Wait(20);
  27.    aCREEPY.Play();
  28.    Wait(40);
  29.    object[0].TweenTransparency(0.4,100,eEaseInEaseOutTween,eBlockTween);
  30.    cJonesP.SayAt(50, 0, 1000, "Where has the Tiger gone?");
  31.    cFace1P.SayAt(50, 0, 1000, "I have been watching you.");
  32.  
  33.    cJones.Loop=2;
  34.    cFace1P.SayAt(50, 0, 1000, "You have shown great courage.");
  35.  
  36.    cFace1P.SayAt(50, 0, 1000, "You faced a great fear and overcame it.");
  37.    cJonesP.SayAt(50, 0, 1000, "Hey! A rock is talking!");
  38.    cFace1P.SayAt(50, 0, 1000, "What do you desire?");
  39.    cJonesP.SayAt(50, 0, 1000, "The Ring of Power that can stop time.");
  40.    cJonesP.SayAt(50, 0, 1000, "I want to house it safe and protected in a museum.");
  41.    cFace1P.SayAt(50, 0, 1000, "You are indeed a wise man.");
  42.  
  43.    cFace1P.SayAt(50, 0, 1000, "Take this key, you will need it.");
  44.    cFace1P.SayAt(50, 0, 1000, "Farewell.");
  45.    object[2].Visible=true;
  46.    
  47.    aStone_door_moving.Play();
  48.    cJones.Loop=0;
  49.  
  50.    Wait(40);
  51.    object[2].Visible=false;
  52.    cJones.AddInventory(iKey);
  53.    cJonesP.SayAt(50, 0, 1000, "That sounds like another Chamber opening.");
  54.     aRunningMan.Play();
  55.    Wait(50);
  56.    cJones.Walk(483,710,eBlock,eWalkableAreas);
  57.    cJonesP.ChangeRoom(7);
  58.    cJones.ChangeRoom(7,1350,394);  
  59. stop
  60.  

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
SOLVED: Re: Two clicks on dialog options
« Reply #8 on: 16 Apr 2018, 19:15 »
All in working order (nod)