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

Death and Decay Spell Trigger Help

Status
Not open for further replies.
You don't/can't; no base wc3 spells can use attributes for damage. You will have to code the effect entirely yourself. Periodically pick units in range of target point and damage them; if caster stops casting spell, end the effect.

You can do the nifty trick Tasyen posted below to change the spell's damage value at cast-time, which is probably good enough for most spells if you're okay locking the damage per-cast so it wouldn't change mid-cast if attributes are altered.
 
Last edited:
Death and Decay is % of max life dmg per second are sure you wana scale that with attributes, sounds pretty op to me. One could use monsun(ANmo)/Blizzard/Flamestrike for a fix dmg amount. But anyway that is doable with the ability api introduced in 1.31.
  • Unit SpellEffect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Death and Decay
    • Actions
      • Set Attribut = (Intelligence of (Triggering unit) (Include bonuses))
      • Set SpellLevel = (Level of (Ability being cast) for (Triggering unit))
      • Set Damage = (0.01 x (Real(Attribut)))
      • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: (Ability being cast))'s Real Level Field: Max Life Drained per Second (%) ('Udd1') of Level: (SpellLevel - 1) to Damage
"Ability - Set Ability: (Unit: (Triggering unit)'s...."
is Set Ability Real Level Field
 
Last edited:
Status
Not open for further replies.
Back
Top