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

MUI question: What's best?

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
If i want my spell to be MUI is it better to use unit groups or a unit array?

  • pick every unit in unit group and do
    • if triggering unit equal to picked unit then
      • blabla
or

  • set x = 1
  • for each integer x from 1 to MAX do
    • if triggering unit equal to unit[x]
      • then blabla
    • x = x+1
 
Level 11
Joined
Dec 31, 2007
Messages
780
hash tables came out after i quitted WC3 edition, so i didn't bother to learn it at that time. Bu now I see that they are really useful thanks =D.

If it happens that come back to wc3 edition i will surely implement them ;)
 
Status
Not open for further replies.
Top