• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Fast Simple Two Questions

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
1 - Does this leak?
  • Item - Pick every item in Region 000 <gen> and do (Actions)
    • Loop - Actions
      • Item - Remove (Picked item)
2 - What are the possible actions to make a dialogue name disappears?

a trigger on map initialization
  • Dialog - Change the title of Dialog7 to Choose Game Difficu...
  • Dialog - Change the title of Dialog to Choose Game Mode

a trigger that runs the dialogue when remaking (in-game remake):
  • Dialog - Change the title of Dialog7 to Choose Game Difficu...
  • Dialog - Change the title of Dialog to Choose Game Mode
  • Dialog - Show Dialog7 for Player 1 (Red)
  • //when the dialogue shows on next time, the name is removed! , but buttons still have the same label
 
Level 3
Joined
Dec 22, 2007
Messages
35
That is a global variable region, so it can't leak out of principle since he thinks it's important enough to be kept throughout the entire course of his game.

But yes you're right, the dumb GUI for group function leaks if you do not set that boolean equal to true as stated in that post. That's why JASS is better, GroupEnum FTW ^^
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Picking units leak because it creates a Unit Group every time you use it, even if the GUI doesn't show it (crappy GUI :S).

The Pick Items however... err... I do not know exacly what it does since I can't look at the real code of EnumItemsInRect, but from a pure guess ill say it doesn't leak.
 
Status
Not open for further replies.
Top