• 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

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
In many MUI spells i see people storing stuff in "unnecessary" variables.
Like so
  • Set Damage[index] = 400
and use it for something like
  • Unit - Cause Unit to damage Unit2, dealing Damage[index] damage of attack type Spells and damage type Unknown
Why not just do like this?
  • Unit - Cause Unit to damage Unit2, dealing 400 damage of attack type Spells and damage type Unknown
and skip the whole variable? because it wont make the spell less MUI right?
 
Level 28
Joined
Sep 26, 2009
Messages
2,517
If the damage is constant then I think yes.
Storing the value first is better if the damage is different per cast (like it takes part of caster's attribute as bonus, etc.). It's way better to store it if your ability is AoE-based (in other words, it's better if you were about to loop a group of targets)
 
Status
Not open for further replies.
Top