Add unit ability

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Loras
Newcomer
Posts: 15
Joined: January 25th, 2009, 4:24 pm

Add unit ability

Post by Loras »

So my problem is i wanna add ability ( aura ) to unit if he kill his target with casted ability but i wanna hide this ability like in dota attribute bonus is hidden for some characters here is my triggers
Shadow Dance
Spoiler:

Code: Select all

Shadow Dance
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Shadow Dance 
    Actions
        Set shadowdance_caster = (Triggering unit)
        Set shadowdance_target = (Target unit of ability being cast)
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 1 ShadowDancer_Dummy for (Owner of shadowdance_caster) at (Position of shadowdance_target) facing (Position of shadowdance_target)
                Set shadowdance_dummy = (Last created unit)
                Animation - Change shadowdance_dummy's vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
                Animation - Play shadowdance_dummy's attack animation
                Unit - Cause shadowdance_caster to damage shadowdance_target, dealing 35.00 damage of attack type Spells and damage type Normal
                Wait 0.35 seconds
                Custom script:   call RemoveUnit(udg_shadowdance_dummy)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Life of shadowdance_target) Less than or equal to 0.00
                    Then - Actions
                        Trigger - Run Shadow Dance Bonus <gen> (checking conditions)
                        Skip remaining actions
                    Else - Actions
                        Do nothing
Shadow Dance Bonus
Spoiler:

Code: Select all

Actions
    Unit - Add Shadow Dance (Bonus) to shadowdance_caster
    Wait 6.00 seconds
    Unit - Remove Shadow Dance (Bonus) from shadowdance_caster
P.S. I'em newbie with triggering if there is any leaks please tell me how to fix them

EDIT I also attached map
You do not have the required permissions to view the files attached to this post.
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Add unit ability

Post by naturesfury »

base if off of an item ability to hide it