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

Multi-strike

Status
Not open for further replies.
Level 3
Joined
Oct 23, 2010
Messages
32
I was wondering how to make a spell where the hero shoots 5 frost bolts in a cone which deals damage to all that it hits (if hit by more than one than it deals more), and having the frost nova effect on the units hit, any idea how to do it?
I tried following a tutorial but sorta failed, and my hero only shoots one in a repeated direction (not direction of cast)

The directions... are sort of like you hand fingers :) with the middle finger being direction of cast

I would be glad if someone would help me write some trigger (no leaks if possible) for this thanks :)
 
Level 15
Joined
Jul 6, 2009
Messages
889
Show us your attempt and maybe we can point out where you've gone wrong.

But anyways, you'd want to trigger missiles that check for collision periodically, then cast frost nova on whatever it hits. That's basically it. You just do this five times for the required angles.
 
Level 3
Joined
Oct 23, 2010
Messages
32
I use GUI for it and i'm just trying to get it to work now... will insert anti-leak custom scripts later


Code:
Actions
     Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Ability being cast) Equal to (==) Frost Lance 
        Then - Actions
        Else - Actions
            Skip remaining actions
    Set pointlocation[6] = (Position of (Casting unit))
    Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards (Angle from pointlocation[6] to (Target point of ability being cast)) degrees)
    Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    Unit - Add Frost Lance Effect  to (Last created unit)
    Unit - Set level of Frost Lance Effect  for (Last created unit) to (Level of Frost Lance  for (Casting unit))
    Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
    Set pointlocation[6] = (Position of (Casting unit))
    Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) + 20.00) degrees)
    Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    Unit - Add Frost Lance Effect  to (Last created unit)
    Unit - Set level of Frost Lance Effect  for (Last created unit) to (Level of Frost Lance  for (Casting unit))
    Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    Wait 0.01 seconds
    Set pointlocation[6] = (Position of (Casting unit))
    Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) + 20.00) degrees)
    Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    Unit - Add Frost Lance Effect  to (Last created unit)
    Unit - Set level of Frost Lance Effect  for (Last created unit) to (Level of Frost Lance  for (Casting unit))
    Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    Wait 0.01 seconds
    Set pointlocation[6] = (Position of (Casting unit))
    Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) - 60.00) degrees)
    Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    Unit - Add Frost Lance Effect  to (Last created unit)
    Unit - Set level of Frost Lance Effect  for (Last created unit) to (Level of Frost Lance  for (Casting unit))
    Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    Set pointlocation[6] = (Position of (Casting unit))
    Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) - 20.00) degrees)
    Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    Unit - Add Frost Lance Effect  to (Last created unit)
    Unit - Set level of Frost Lance Effect  for (Last created unit) to (Level of Frost Lance  for (Casting unit))
    Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
 
Level 3
Joined
Oct 23, 2010
Messages
32
Like this?

  • Actions
    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Ability being cast) Equal to (==) Frost Lance
      • Then - Actions
      • Else - Actions
        • Skip remaining actions
    • Set pointlocation[6] = (Position of (Casting unit))
    • Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards (Angle from pointlocation[6] to (Target point of ability being cast)) degrees)
    • Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Frost Lance Effect to (Last created unit)
    • Unit - Set level of Frost Lance Effect for (Last created unit) to (Level of Frost Lance for (Casting unit))
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
    • Set pointlocation[6] = (Position of (Casting unit))
    • Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) + 20.00) degrees)
    • Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Frost Lance Effect to (Last created unit)
    • Unit - Set level of Frost Lance Effect for (Last created unit) to (Level of Frost Lance for (Casting unit))
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    • Wait 0.01 seconds
    • Set pointlocation[6] = (Position of (Casting unit))
    • Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) + 20.00) degrees)
    • Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Frost Lance Effect to (Last created unit)
    • Unit - Set level of Frost Lance Effect for (Last created unit) to (Level of Frost Lance for (Casting unit))
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    • Wait 0.01 seconds
    • Set pointlocation[6] = (Position of (Casting unit))
    • Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) - 60.00) degrees)
    • Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Frost Lance Effect to (Last created unit)
    • Unit - Set level of Frost Lance Effect for (Last created unit) to (Level of Frost Lance for (Casting unit))
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
    • Set pointlocation[6] = (Position of (Casting unit))
    • Set pointlocation[5] = (pointlocation[6] offset by 500.00 towards ((Angle from pointlocation[6] to pointlocation[5]) - 20.00) degrees)
    • Unit - Create 1 Invisible Dummy for (Owner of (Casting unit)) at pointlocation[6] facing pointlocation[5]
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Frost Lance Effect to (Last created unit)
    • Unit - Set level of Frost Lance Effect for (Last created unit) to (Level of Frost Lance for (Casting unit))
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave pointlocation[5]
 
Status
Not open for further replies.
Top