• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

Spell akin to Axe ("Culling Blade")?

Status
Not open for further replies.
Level 2
Joined
Feb 18, 2006
Messages
14
Hiya,

I have begun making a custom ability called "Coup De Grace" which is akin to Axe's "Culling Blade" in DotA. Essentially, the idea is that it would instantly kill any hero or unit below 300 life. However, I'm at a loss for how to trigger this.

Help would be greatly appreciated.
 
Level 4
Joined
Jul 3, 2006
Messages
61
I have a spell like that in my map, here is my trigger version but feel free to edit/use.
Code:
Critical Blow
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Critical Blow 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Life of (Target unit of ability being cast)) Less than (250.00 + ((Real((Level of Critical Blow  for AztralicA 0119 <gen>))) x 50.00))
            Then - Actions
                Unit - Cause AztralicA 0119 <gen> to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Chaos and damage type Death
            Else - Actions
                Do nothing
 
Status
Not open for further replies.
Top