• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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 23
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