Spell Shadow Attack

H34DhUnT3r

Ultra Cool Member
Reaction score
36
Hi,

Shadow Attack

Icon
f_IconShadowAm_3e6b9b7.png


Ability Info
This ability creates copies (shadows) of the Shadowmaster which damages the target; also stuns the target for 5 seconds

Level 1 - 1 shadow; 90 damage total
Level 2 - 2 shadows; 180 damage total
Level 3 - 3 shadows; 270 damage total

Editor Info
-1 trigger
-2 custom units (the Shadowmaster and the shadow of the Shadowmaster)
-1 custom sound (not needed, but sounds nice:) )
-1 custom ability (based on storm bolt)
-MPI
-No Jass (just 1 normal trigger :D )

The trigger:

Code:
Shadow Attack
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Shadow Attack 
    Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Owner of (Triggering unit)) Equal to (Player((Integer A)))
                    Then - Actions
                        Set SA_CastingUnit[(Integer A)] = (Triggering unit)
                        Set SA_AttackedUnit[(Integer A)] = (Target unit of ability being cast)
                        Set SA_LvlAbility[(Integer A)] = (Level of Shadow Attack  for SA_CastingUnit[(Integer A)])
                        Set SA_RandomAngle[(Integer A)] = (Random real number between 0.00 and 360.00)
                        For each (Integer B) from 1 to SA_LvlAbility[(Integer A)], do (Actions)
                            Loop - Actions
                                Set SA_RandomAngle[(Integer A)] = (SA_RandomAngle[(Integer A)] + 120.00)
                                Set SA_AttackedUnitPos[(Integer A)] = (Position of SA_AttackedUnit[(Integer A)])
                                Set SA_ShadowPlacePos[(Integer A)] = (SA_AttackedUnitPos[(Integer A)] offset by 100.00 towards SA_RandomAngle[(Integer A)] degrees)
                                Sound - Play ShadowAttack <gen> at 100.00% volume, located at SA_AttackedUnitPos[(Integer A)] with Z offset 0.00
                                Unit - Create 1 Shadowmaster (Shadow) for (Owner of SA_CastingUnit[(Integer A)]) at SA_ShadowPlacePos[(Integer A)] facing Default building facing degrees
                                Set SA_ShadowUnit[(Integer A)] = (Last created unit)
                                Unit - Change ownership of SA_ShadowUnit[(Integer A)] to Neutral Passive and Retain color
                                Unit - Make SA_ShadowUnit[(Integer A)] face SA_AttackedUnit[(Integer A)] over 0.00 seconds
                                Animation - Change SA_ShadowUnit[(Integer A)]'s animation speed to 1000.00% of its original speed
                                Animation - Play SA_ShadowUnit[(Integer A)]'s attack animation
                                Wait 0.12 seconds
                                Unit - Cause SA_CastingUnit[(Integer A)] to damage SA_AttackedUnit[(Integer A)], dealing 30.00 damage of attack type Spells and damage type Normal
                                Animation - Play SA_ShadowUnit[(Integer A)]'s attack animation
                                Wait 0.12 seconds
                                Unit - Cause SA_CastingUnit[(Integer A)] to damage SA_AttackedUnit[(Integer A)], dealing 30.00 damage of attack type Spells and damage type Normal
                                Animation - Play SA_ShadowUnit[(Integer A)]'s attack slam animation
                                Wait 0.12 seconds
                                Unit - Cause SA_CastingUnit[(Integer A)] to damage SA_AttackedUnit[(Integer A)], dealing 30.00 damage of attack type Spells and damage type Normal
                                Unit - Remove SA_ShadowUnit[(Integer A)] from the game
                                Custom script:   call RemoveLocation(udg_SA_AttackedUnitPos[bj_forLoopAIndex])
                                Custom script:   call RemoveLocation(udg_SA_ShadowPlacePos[bj_forLoopAIndex])
                    Else - Actions

Screenie:
f_ShadowAttacm_300d0fa.png


Hope you like, not sure if it's original though :confused:
If so, I'm sorry

well,, Discuss!:D (or comment or whatever you prefer :p )

Greetings,
H34DhUnT3r[NL]
 

Attachments

  • [Spell] Shadow Attack.w3x
    43.1 KB · Views: 273

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
It's Intresting, Maybe you should change 2 things, The icon, Used for Mirror image, which also uses the mirror image guy like your pic, as well as only used by blademaster.. Kinda not original there, and maybe making it do more effects, maybe slow, and and like headache lol?
 

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
Like slow the target, The effect making the target actually having some trouble with continuing the fight, like if someone would use this in a Footman Wars, they would want to not only to do damage with this and trick them, but maybe allowing you to escape? Also, in the Ability since it is one ability write what it actually does..
 

Tom Jones

N/A
Reaction score
437
Code:
        Unit - A unit Begins casting an ability
Bugged event, use Unit - A unit starts the effects of an ability instead.

*Edit*
-No Jass or GUI (just 1 normal trigger )
GUI stands for graphical user interface, and the term covers the entire world editor, however GUI is better known as regular triggers. To sum it up, your spell is GUI.
 

H34DhUnT3r

Ultra Cool Member
Reaction score
36
well the target is stunned.. i think that that would be enough trouble to continue ;) or did i misunderstood you?

>Also, in the Ability since it is one ability write what it actually does..
you mean in the tooltip?
 

Tom Jones

N/A
Reaction score
437
well the target is stunned.. i think that that would be enough trouble to continue or did i misunderstood you?
If that was meant for me, then yes you did misunderstand me. The event your using is bugged, you shouldn't use it no matter what. That event registers when a unit starts to cast to the ability, however a player could easily move the unit at the right time to cancel the spell, reserving cooldown and manacost, but the trigger still executes. Use Unit - A unit starts the effects of an ability instead.
 

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
Oh well if it was for me, and not my movie buddy jones, then what I mean is that, lets say its a hero, he should have a penalty that lasts, not only a damage and stun penalty, and for the What the Ability does, no I meant in the tutorial, you should write like, this ability stuns the opponent caus.. etc...
 

H34DhUnT3r

Ultra Cool Member
Reaction score
36
Code:
        Unit - A unit Begins casting an ability
Bugged event, use Unit - A unit starts the effects of an ability instead.

*Edit*
GUI stands for graphical user interface, and the term covers the entire world editor, however GUI is better known as regular triggers. To sum it up, your spell is GUI.

bugged event?
but it works how can it be bugged?
EDIT: to tom jones: ah you post the answer before i posted the question :p
to Xapphire: well i created a new icon, but i don't know how to import or whatever
 

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
ok.. well umm you need to type a custom path called
ReplaceableTextures\CommandButtons\Yourfilename.blp
and then restart the editor, start it and change the icon.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
.tga files can be used as icons. No need to convert to .blp. That is, if you use the Object Editor to apply the icon. Changing the path? Well, good luck with that.
 

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
He's Logged off, well I really like what you did, the spell that you posted can now be downloaded knowing what the ability does, its nice, very nice, good job. Thanks Ghan.
 

H34DhUnT3r

Ultra Cool Member
Reaction score
36
well i did change the path to:
ReplaceableTextures\CommandButtons\BTNShadowAttack.tga and yes that is the correct name of the file
and then i changed it in the object editor (you know the imported line) but still nothing has changed.. it's not working actually its worse, whenever you should see the icon ingame the game crashes
 

Xapphire

Liberty, Simply said; a lie.
Reaction score
45
Ghan, I seriously dont think that .tga files work, you can check in any map, I have not once seen a .tga file, and .blp is blizzard layour something, so i think blp is required.. =(
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
> Ghan, I seriously dont think that .tga files work

I've used a .tga file in a map without incident. Is that map on the first post the most recent? I'll take a look....

Edit: Hmm? I don't see an imported image file. Where is it?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top