[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.
 
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.
Back
Top