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

Spells with throw and aoe

Status
Not open for further replies.
Level 4
Joined
Oct 8, 2010
Messages
37
I wanna make myself spells that are throw and when they hit target to do aoe damage ( stun, damage overtime )



Example: Justice hammer cast range 600, aoe effect 300, stun for 3 seconds, damage done 300



Thank you.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Shadybg... There are some examples in "Tutorial" forum about how to create spells.

There are some basics:
- Two abilities can't be in the same character having the same "Text - Order ID", or "Data - Base ability ID." The only ability to allows you the manipulation of base ability ID is Channel.
- You'll need for sure a Damage Detection System. It will make your life easier.

-The cast range is set in the Object Editor.

-The AoE is done with "Unit Group - Pick Every unit in 300 Range"

-The 3 sec stun is set also in the object editor.

-Damage can be set in the Object editor, or done with "Unit - Damage unit"

-You may need a Dummy unit to cast these abilities.

Hope you can handle it all!
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
Here you go i have attatched the map for you also. you need to make another dummy because when they die that hero die message pops up
  • Cast hammer of justice
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Hammer of justice
    • Actions
      • Set HoJ_target_point = (Position of (Target unit of ability being cast))
      • Unit Group - Pick every unit in (Units within HoJ_area of HoJ_target_point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set HoJ_temp_loc = (Position of (Picked unit))
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at HoJ_temp_loc facing Default building facing degrees
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Cause (Last created unit) to damage (Picked unit), dealing 300.00 damage of attack type Spells and damage type Normal
  • setting
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set HoJ_area = 400.00
 

Attachments

  • HoJ.w3x
    23.3 KB · Views: 57
Here you go i have attatched the map for you also. you need to make another dummy because when they die that hero die message pops up
  • Cast hammer of justice
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Hammer of justice
    • Actions
      • Set HoJ_target_point = (Position of (Target unit of ability being cast))
      • Unit Group - Pick every unit in (Units within HoJ_area of HoJ_target_point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set HoJ_temp_loc = (Position of (Picked unit))
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at HoJ_temp_loc facing Default building facing degrees
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Cause (Last created unit) to damage (Picked unit), dealing 300.00 damage of attack type Spells and damage type Normal
  • setting
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set HoJ_area = 400.00

Take care of the location leaks.
 
Status
Not open for further replies.
Top