• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Do character select Dialog's leak?

Status
Not open for further replies.
Level 4
Joined
Dec 31, 2014
Messages
68
Hello,
I have made a Dialog based upon http://world-editor-tutorials.thehelper.net/dialogs.php

This is the trigger I created;

  • Showdialog
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Dialog - Clear Startingclass
      • Dialog - Change the title of Startingclass to Choose your startin...
      • Dialog - Create a dialog button for Startingclass labelled Warrior ...
      • Set Dialogbuttons[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Startingclass labelled Mage ...
      • Set Dialogbuttons[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Startingclass labelled Thief ...
      • Set Dialogbuttons[3] = (Last created dialog Button)
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Dialog - Show Startingclass for Player 1 (Red)
          • Dialog - Show Startingclass for Player 2 (Blue)
          • Dialog - Show Startingclass for Player 3 (Teal)
Leak check tells me there are unit group leaks.
Variables
Dialogbuttons[1] : (Line: 9) Unit Group - Removed: No
Dialogbuttons[2] : (Line: 11) Unit Group - Removed: No
Dialogbuttons[3] : (Line: 13) Unit Group - Removed: No

While I have seen tutorials for how to fix unit group leaks I'm a little confused how to go about doing it for a dialog, any help would be appreciated.
 
Last edited:
Level 19
Joined
Aug 8, 2007
Messages
2,765
well.. you know.. you have no unit groups... so its likely your leak checker is pointing to a different trigger.

also your function doesn't work properly. every player has to have a dialog initalized for them. you can't use the same one for all 3. if you do, than one player pressing a button will close the dialog for all players
 
Level 4
Joined
Dec 31, 2014
Messages
68
oh right ok, hmm.
Nah the dialog works properly for all players, I did that Initialization in my main map initialization trigger, iv tested it :) it was only the reported leak that I was worried about. Everything else seems to be leak free apart from this :/
 
Status
Not open for further replies.
Top