• 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.

[Trigger] GUI/Leaks/MUI..

Status
Not open for further replies.
Hi!

I have a bunch of questions:
1. MUI

I use this variable
  • Set UnitVarLast01[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Is this variable right or it should be
  • Set UnitVarLast01[(Player number of (Owner of (Last created unit)))] = (Last created unit)
but than do i need to null it?

An as far as i know i need to set this variable only if i create dummy? Otherwise i dont need to set it and the spell is still MUI?
And whats about if/than/else
Tell me everything i need to know.

2.Unit Groups

  • Set GroupVar4 = (Units within 900.00 of TempLoc9 matching ((((Owner of (Matching unit)) is an enemy of (Triggering player)) Equal to True) and (((Matching unit) is alive) Equal to True)))
  • Unit Group - Pick every unit in GroupVar4 and do (Actions)
    • Loop - Actions
  • Bla
  • Bla
  • Bla
  • Custom script: call DestroyGroup (udg_GroupVar4)
Is this right that i destroy it this way in the Loop - Actions
?

3. Special Effects with Arrays

  • Set TempLoc9 = (Target point of ability being cast)
  • Special Effect - Create a special effect at TempLoc9 using Abilities\Spells\Other\Drain\DrainCaster.mdl
  • Set SpecialEffect[1] = (Last created special effect)
  • .
  • Now a lot of other actions below(a loop and the unit group)
  • .
  • Special Effect - Destroy SpecialEffect[1]
How do i propherly destroy this effect?

The most I'm interested is MUI.

Pls tell me!
Thanks

-BerZeKeR-
 
Level 17
Joined
May 6, 2008
Messages
1,598
You need to null it. It doesn't matter. It pretty much the same as the number is still the same unless you add some number.

Don't destroy it in the loop, destroy it AFTER.

What do you mean by properly?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
1. You do not null globals, stop getting this into your head.

2. How can you remove a group while being inside it's call back ? Remove it after and if you need to stop in the middle, skip the rest (not sure if you can do this with GUI).

3. Why do you think that that leaks ? It's the equivalent to DestroyEffect in GUI.
 
OK thanks you guys, now all i need to know how MUI works..
  • Unit - Create 1 Dummy for (Owner of UnitVarCaster4) at TempLoc13 facing Default building facing degrees
  • Set UnitVarLast01[(Player number of (Owner of UnitVarCaster4))] = (Last created unit)
  • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
  • bla,bla,bla
And this is it?
But i only need to use that variable when i create a dummy?
 
Status
Not open for further replies.
Top