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: 272

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
889
.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
889
> 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
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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