Author Topic: Dialog being canceled out by global variables?  (Read 713 times)

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: Dialog being canceled out by global variables?
« Reply #20 on: 26 Dec 2017, 20:34 »
I made a walk on hotspot that worked fine.
I made an interact hotspot that was linked to the character and it did nothing.

Hmm, could you elaborate what you mean by "walk on hotspot" and "interact hotspot that was linked to the character"?
Hotspots do not have "walk on" interaction.
Can it be you are painting walkable areas or regions instead of hotspots, or something like that?
« Last Edit: 26 Dec 2017, 20:36 by Crimson Wizard »

Re: Dialog being canceled out by global variables?
« Reply #21 on: 26 Dec 2017, 21:18 »
I don't know how much help this is gonna be, but if you're starting over the BASS template is significantly easier since you only have two types of interactions, maybe that'd be more up your alley

Re: Dialog being canceled out by global variables?
« Reply #22 on: 27 Dec 2017, 00:40 »
I made a walk on hotspot that worked fine.
I made an interact hotspot that was linked to the character and it did nothing.

Hmm, could you elaborate what you mean by "walk on hotspot" and "interact hotspot that was linked to the character"?
Hotspots do not have "walk on" interaction.
Can it be you are painting walkable areas or regions instead of hotspots, or something like that?

Hotspots do have walk on interaction. Every single room in my game has walk on hot spots that when the character walks on them, the room changes.
For example, a code like this.
Code: Adventure Game Studio
  1. function hBobRoomToHall_WalkOn()
  2. {
  3.   cBob.ChangeRoom(2, 733, 420);
  4. }
« Last Edit: 27 Dec 2017, 00:42 by Brian925 »

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: Dialog being canceled out by global variables?
« Reply #23 on: 27 Dec 2017, 00:45 »
Hotspots do have walk on interaction.
Oh, right, my mistake, it is called "Stands on" in the event list.

Well, I have absolutely no idea at this point, maybe you could just upload your game project, since it is only made from default template?
« Last Edit: 27 Dec 2017, 00:47 by Crimson Wizard »

Khris

    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
    • Khris worked on a game that was nominated for an AGS Award!
Re: Dialog being canceled out by global variables?
« Reply #24 on: 29 Dec 2017, 15:56 »
Yes, please upload your game. I'll bet all my Bitcoins (0.00) that this is user error.

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    •  
    • Kweepa worked on a game that was nominated for an AGS Award!
Re: Dialog being canceled out by global variables?
« Reply #25 on: 29 Dec 2017, 17:15 »
Could it be you didn't 'fill' the hotspot with a solid colour?
Or perhaps the hotspot is behind another object that is consuming the click?
You could add this code to the room script:
Code: Adventure Game Studio
  1. function on_mouse_click(MouseButton button)
  2. {
  3.   Hotspot *h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
  4.   if (h != null)
  5.   {
  6.     if (h.IsInteractionAvailable(eModeInteract))
  7.     {
  8.       Display("Hotspot %s has interact interaction.", h.Name);
  9.     }
  10.     else
  11.     {
  12.       Display("Hotspot %s has NO interact interaction.", h.Name);
  13.     }
  14.   }
  15.   else
  16.   {
  17.     Display("No hotspot there.");
  18.   }
  19.   Object *ob = Object.GetAtScreenXY(mouse.x, mouse.y);
  20.   if (ob != null)
  21.   {
  22.     Display("Object %s hiding hotspot.", ob.Name);
  23.   }
  24.   Character *c = Character.GetAtScreenXY(mouse.x, mouse.y);
  25.   if (c != null)
  26.   {
  27.     Display("Character %s hiding hotspot.", c.Name);
  28.   }
  29. }
  30.  
« Last Edit: 29 Dec 2017, 17:35 by Kweepa »
Still waiting for Purity of the Surf II