• 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] Cleaning MUI variables up (?)

Status
Not open for further replies.
I have MUI variables, e.g.:

Set MUI = (MUI + 1)
Set Caster [MUI] = (Casting unit)
Set Point [MUI] = (Position of Caster [MUI])
Set Group [MUI] = (Units within 300.00 of (Point [MUI]))

-> How to clean those up? <-

Custom script: call RemoveLocation (udg_Point[?])
Custom script: call DestroyGroup (udg_Group[?])
Custom script: set udg_Caster[?] = null

How to detect the number of the array to clean it up? :hohum:

Rep will of course given, thank you in advance.
 
Level 25
Joined
Jun 5, 2008
Messages
2,573
You need to loop:
  • For each integer A from 1 to MUI do actions
    • - If *some condition* equalt to *some value*
      • - Custom script: call RemoveLocation (udg_Point[GetForLoop(IntegerA())])
      • - Custom script: call DestroyGroup (udg_Group[GetForLoop(IntegerA())])
      • - Custom script: set udg_Caster[GetForLoop(IntegerA())] = null
Should be something like that, maybe i mistyped.
Anyway i wrote a nice tutorial covering the subject about making MUI spells, it's link is the last one in my signature.
 
Status
Not open for further replies.
Top