• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] AoE damage spell based on intelingence ?

Status
Not open for further replies.
Here:
  • AoE Damage
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Your Ability
    • Actions
      • Set Caster = (Triggering Unit)
      • Set Player = (Owner of Caster)
      • Set Point = (Target point of ability being cast)
      • Set Group = (Units within 300.00 of Point matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player) Equal to True)))
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Set Target = (Picked unit)
          • Unit - Cause Caster to damage Target, dealing ((Real((Intelligence of Caster (Include bonuses)))) x 2.00) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Group)
      • Custom script: call RemoveLocation(udg_Point)
Whenever you cast the correct spell your hero will deal damage to units within 300 of the target point and deal int * 2.
 
Last edited:

You do not need to null globals (remove locations and destroy groups, but don't nullthe variables, as they are only pointers and they are rewritten).
Do not use casting unit. Triggering Unit is the best form (it is a local to the trigger if it means anything to you).
What's the point of "Cause unit to damage area" if you don't use it ?
 
Status
Not open for further replies.
Back
Top