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

Multiple projectiles for a spell

Status
Not open for further replies.
Level 12
Joined
Aug 18, 2006
Messages
1,193
use your spell with no projectile(or a really small one) and do a trigger like this:

  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • (Ability being cast) Equal to SPELL
  • Actions
    • Set Caster = (Casting unit)
    • Set Target = (Target of ability being cast)
    • If (All conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of SPELL for Caster) Equal to 1
      • Then - Actions
        • Lightning - Create a Lightning Effect lightning effect from source (Position of Caster) to target (Position of Target)
        • Lightning - Change color of (Last created lightning effect) to (Color Numbers go Here) with NUMBER alpha)
        • Set Lightning = (Last created lightning effect)
        • Wait (number) game-time seconds
        • Lightning - Remove Lightning
the color numbers are Red, Blue, Green, and the alpha is for how visible the lightning should be, 1 being 100% and 0 being invisible
 
  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • (Ability being cast) Equal to SPELL
  • Actions
    • Set Caster = (Casting unit)
    • Set Target = (Target of ability being cast)
    • If (All conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of SPELL for Caster) Equal to 1
      • Then - Actions
        • Lightning - Create a Mana Burn (green lightning) lightning effect from source (Position of Caster) to target (Position of Target)
        • Lightning - Change color of (Last created lightning effect) to (Color Numbers go Here) with NUMBER alpha)
        • Set Lightning = (Last created lightning effect)
        • Wait (number) game-time seconds
        • Lightning - Remove Lightning
      • Else - Actions
      • If (All conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of SPELL for Caster) Equal to 2
        • Then - Actions
          • Lightning - Create a Finger of Death (red lightning) lightning effect from source (Position of Caster) to target (Position of Target)
          • Lightning - Change color of (Last created lightning effect) to (Color Numbers go Here) with NUMBER alpha)
          • Set Lightning = (Last created lightning effect)
          • Wait (number) game-time seconds
          • Lightning - Remove Lightning
        • Else - Actions
      • If (All conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of SPELL for Caster) Equal to 3
        • Then - Actions
          • Lightning - Create a Chain Lightning - Primary (blue) lightning effect from source (Position of Caster) to target (Position of Target)
          • Lightning - Change color of (Last created lightning effect) to (Color Numbers go Here) with NUMBER alpha)
          • Set Lightning = (Last created lightning effect)
          • Wait (number) game-time seconds
          • Lightning - Remove Lightning
        • Else - Actions
And so on.
 
Status
Not open for further replies.
Top