• 🏆 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!

what really does CreateGroup() do?

Status
Not open for further replies.
Level 9
Joined
Sep 28, 2004
Messages
365
if i type the below code:

  • Custom script: set udg_tempGroup = CreateGroup()
  • Unit Group - Add (Target unit of ability being cast) to tempGroup
  • Unit Group - Remove all units from tempGroup
  • Custom script: call DestroyGroup(udg_tempGroup)
1. Is this MUI? Assuming each time i cast a spell i do this.
2. Does it create an object of the tempGroup? If so am i using it correctly?

Some Other Questions:
1. Why can't hashtable save Ability? When i press it will crash.
2. I base my spell on Frost Nova. When i change the Order String - Use/Turn On to chainlightning and order unit to cast chainlightning. It didn't work. What am i doing wrong?
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
1. 100% MUI
but not necessary, read below
2. No it doesnt create anything as always the first unit group is auto created as this is none arrayed, no need to create but if it is arrayed tempgroup[1] will be auto created but you have to create [2] and so on

1. because hash got some issues
2. just dont do it, find the other one instead
 
Level 11
Joined
Apr 6, 2008
Messages
760
1. Is this MUI? Assuming each time i cast a spell i do this.

Yes, very MUI

2. Does it create an object of the tempGroup? If so am i using it correctly?

Yes

1. Why can't hashtable save Ability? When i press it will crash.

What?

2. I base my spell on Frost Nova. When i change the Order String - Use/Turn On to chainlightning and order unit to cast chainlightning. It didn't work. What am i doing wrong?

Some spells bugg when you change order id, use channel as base spell works everytime you change order id (Best base spell for spell making imo)
 
Status
Not open for further replies.
Top