• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Simple Dialogue Issues

Status
Not open for further replies.
Level 26
Joined
Oct 2, 2011
Messages
2,482
Hi!
I have an issue with a dialogue menu I have been making.
The clicked dialogue button does not bring up the list I tell it to.

This is the overmenu, used to get to the submenues.
This one works as intended.
  • List OverMenu
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Dialog Controls
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to |cffffffffWarden Me...
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffControls [|r|cffffcc00Q|r|cffffffff]|r", 'Q')
      • Set DialogButton[1] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffStats [|r|cffffcc00W|r|cffffffff]|r", 'W')
      • Set DialogButton[2] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffPassive Abilities [|r|cffffcc00E|r|cffffffff]|r", 'E')
      • Set DialogButton[3] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffEnergy Abilities [|r|cffffcc00R|r|cffffffff]|r", 'R')
      • Set DialogButton[4] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffSoul Abilities [|r|cffffcc00T|r|cffffffff]|r", 'T')
      • Set DialogButton[5] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffAchivements [|r|cffffcc00Y|r|cffffffff]|r", 'Y')
      • Set DialogButton[6] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffMaster Mode [|r|cffffcc00U|r|cffffffff]|r", 'U')
      • Set DialogButton[7] = (Last created dialog Button)
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffClose [|r|cffffcc00Z|r|cffffffff]|r", 'Z')
      • Dialog - Show Dialog for Player 1 (Red)
However, I thought that would open this one, but it doesn't.
  • List Controls
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to |cffffffffControls
      • Dialog - Create a dialog button for Dialog labelled |cffffffffMovement ...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Dialog - Create a dialog button for Dialog labelled |cffffffffAttack - ...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Dialog - Create a dialog button for Dialog labelled |cffffffffDash - |c...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Dialog - Create a dialog button for Dialog labelled |cffffffffStun - |c...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Dialog - Create a dialog button for Dialog labelled |cffffffffEnergy Ab...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Dialog - Create a dialog button for Dialog labelled |cffffffffSoul Abil...
      • Dialog - Create a dialog button for Dialog labelled |cff000000-
      • Custom script: set bj_lastCreatedButton = DialogAddButton(udg_Dialog, "|cffffffffClose [|r|cffffcc00Z|r|cffffffff]|r", 'Z')
      • Set DialogButton[0] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)
I've attached the map file too, if you think it is easier to look at it that way.
The triggers are in the "Menu" category.
 

Attachments

  • Warden - Solens Sanctuary 1.41.w3x
    6 MB · Views: 45
Level 15
Joined
Mar 25, 2016
Messages
1,327
It has something to do with List Close. Adding a skip remaining functions on top of it allows me to open the menu (with List Close activated it only worked once).
Want me to take a closer look or is this information enough for you to find a solution?
 
Level 26
Joined
Oct 2, 2011
Messages
2,482
Want me to take a closer look or is this information enough for you to find a solution?
Thanks for your offer. I'll look a bit myself first though. :)
Thanks!

Iirc it's a single player issue, as the game gets paused when a dialog is up. Try to wait 0.2 seconds or so before you show the next dialog after a button is clicked.
It kinda worked. I needed even longer waiting times for it to work. However that is not the issue. That is an irritating thing, as unpausing the game in my menu is gonna ruin a few things.
I gotta find a way around it. :/
 
Level 26
Joined
Oct 2, 2011
Messages
2,482
I didn't test it thouroughly. I just tried 0.00 seconds first - didn't work
0.20 seconds - didn't work
3.00 seconds - worked

But the thing is, even 0.2 seconds is too much.

However, the problem seems to have been in the List Close trigger. I deactivated it, and it worked without delay.

You mean you paused game by triggers, then show a dialog, and then it gets unpaused?
Nah, just paused during dialogue.
 
Status
Not open for further replies.
Top