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

Random Targeting Spell

Status
Not open for further replies.
Level 2
Joined
Jul 23, 2010
Messages
15
I need a spell that hits 3 random targets around with a lightning beam, dealing damage based on stats.
Any ideas how that random targeting of exaclty 3 enemies could be acomplished?
Also i have some minor problems with the beamlike effects (from caster/point to moving targets) for trigger spells, if anyone got time to make my a quick example map or just to explain, that would be great.
Thx
 
Level 24
Joined
Oct 12, 2008
Messages
1,783
Steps

1 - Pick all units within the area you want the spell to hit
2 - Pick 3 random units in the said group
3 - Inflict damage based on caster stats
4 - Get a dummy caster to hit said 3 with a no damage chain light.
 
Level 2
Joined
Jul 23, 2010
Messages
15
What I seem not to find is the 'Pick 3 random units in the said group' part. :/
How ecaxtly do I do it? :)
 
Status
Not open for further replies.
Top