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

Split bolt spell

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
ive been experimenting with triggers and such, and im trying to make it so; When you cast a skill (based off storm bolt) it casts a spell with equal damage (looks different) to two random units within 700 range. I can get it to cast it to one unit, but i cant get it to cast to the second unit. Help would b nice ^_^
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Use this trigger:

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to ....
Actions
Trigger - Turn off (This trigger)
Unit - Create 1 *dummy* for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degrees
Unit - Order (Last created unit) to *cast the spell* (Random unit from (Units within 700.00 of (Position of (Casting unit)))
Wait *cooldown time* seconds
Trigger - Turn on (This trigger)

PS: Create more dummys if u want the casting unit shoot more bolts
 
Level 3
Joined
Aug 28, 2005
Messages
48
Ramza said:
Use this trigger:
Unit - Order (Last created unit) to *cast the spell* (Random unit from (Units within 700.00 of (Position of (Casting unit)))

How do you get it to target random units? cuz when i choose what units it can target its just like picked unit, last created unit etc. etc.
 
Level 3
Joined
Aug 28, 2005
Messages
48
are you talking bout the "pick all units in group and do multiple actions" function? cuz u ddnt put that up there
and i still cant get it to cast on 2 different units, i cant even get it to cast once lol
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
? Why it doesnt work, I use the trigger to and it works. Make sure the dummys have the ability, enough mana etc. also set the dummy model to none and scaling value to 1.0 so u can c the missle (bolt) he fires. I dunno if ive already told it, but the spell for the dummy must be the same as the spell for the casting unit.
 
Level 3
Joined
Aug 28, 2005
Messages
48
could u send me the test map u used for it? that way i can see if ur doin what i want done lol, and if so that will help me make it
 
Status
Not open for further replies.
Top