Dash to Charge! problem

monar

New Member
Reaction score
0
I downloaded Dash spell and i added dummy unit that will stun and damage unit after dash, but dash works and that unit not.

If i try it whitout Dash (if u use spell, only dummy unit will create and it will stun target) it works. what i do wrong?
its in Czech but maybe u can help me.

Here are 2 triggers:

Code:
Dash Same Speed
    Události
        Jednotka - A unit Zacina pouzi_vat schopnost
    PodmÃ_nky
        (Ability being cast) Rovna se |CFFFFF200C|Rharge! 
    cinnosti
        Set Player[10] = (Owner of (Casting unit))
        Set ss_const = 6.00
        Set casterunit = (Casting unit)
        Set castloc = (Position of casterunit)
        Set target = (Target point of ability being cast)
        Set Hero[9] = (Target unit of ability being cast)
        Set faceangle = ((Angle from castloc to target) + 180.00)
        Set distance = (Distance between castloc and target)
        If (All Conditions are True) then do (Then Actions) else do (ElseActions)
            If - conditions
                distance bigger than 600.00
            Then - actions
                Set distance = 600.00
            Else - Actions
                Do nothing
        Jednotka - Add Attribute  to casterunit
        Animace - Play casterunit's ready animation
        SpÃ_nač - Turn on Dash Move Same Speed <gen>
        Wait (distance / (ss_const x 200.00)) seconds
        Jednotka - Remove Attribute  from casterunit
        SpÃ_nač - Turn off Dash Move Same Speed <gen>
        Animace - Reset casterunit's animation
--------------- my addon --------
        Wait 0.10 seconds
        Set Player[10] = (Owner of (Casting unit))
        Jednotka - Create 1 Charge for Player[10] at castloc facing StandardnÃ_ orientace budov degrees
        Set Hero[10] = (Last created unit)
        Jednotka - Hide Hero[10]
        Hrdina - Create Charge and give it to Hero[10]
        Hrdina - Order Hero[10] to use (Last created item) on Hero[9]
        Wait 0.01 seconds
        Jednotka - Remove Hero[10] from the game
        Wait 0.01 seconds
        Custom script:   call RemoveLocation(udg_target)
        Custom script:   call RemoveLocation(udg_castloc)

Trigger 2
Code:
Dash Move Same Speed
    Události
        Time - Every 0.03 seconds of game time
    Conditions
    Actions
        Set castloc = (Position of casterunit)
        Set polarproj = (castloc offset by (ss_const x 5.00) towards (faceangle + 180.00) degrees)
        Jednotka - Move casterunit instantly to polarproj, facing (faceangle + 180.00) degrees
        Special_ effect - Create a special effect attached to the origin of casterunit using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
        Special effect - Destroy (Last created special effect)
        Custom script:   call RemoveLocation(udg_polarproj)
        Custom script:   call RemoveLocation(udg_castloc)
thx for all replys and help
 
S

scythetleppo

Guest
I could be wrong but ...


if you cast a spell it targets either a unit OR a location.

which means you have to do this:

Set target = (location of unit ( target unit of ability being cast))
Set Hero[9] = (Target unit of ability being cast)


OR

Set target = (target point of ability being cast)
and then you have to do a trigger to find the nearest hero(s) to that point


it depends on the spell you are casting...is it target a POINT or target a UNIT?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i dont understand why can't u just damage and stun it with triggers?
 

monar

New Member
Reaction score
0
this is what i want:
u will use spell on target
your hero will quickly go (slide) to target and dmg, stun the target
(charge in WoW)
 

Chocobo

White-Flower
Reaction score
409
Code:
Dash Same Speed
    Události
        Jednotka - A unit Zacina pouzi_vat schopnost
    PodmÃ_nky
        (Ability being cast) Rovna se |CFFFFF200C|Rharge! 
    cinnosti
        Set Player[10] = (Owner of (Casting unit))
        Set ss_const = 6.00
        Set casterunit = (Casting unit)
        Set castloc = (Position of casterunit)
        Set target = (Target point of ability being cast)
        Set Hero[9] = (Target unit of ability being cast)
        Set faceangle = ((Angle from castloc to target) + 180.00)
        Set distance = (Distance between castloc and target)
        If (All Conditions are True) then do (Then Actions) else do (ElseActions)
            If - conditions
                distance bigger than 600.00
            Then - actions
                Set distance = 600.00
            Else - Actions
                Do nothing
        Jednotka - Add Attribute  to casterunit
        Animace - Play casterunit's ready animation
        SpÃ_nač - Turn on Dash Move Same Speed <gen>
        Wait (distance / (ss_const x 200.00)) seconds
        Jednotka - Remove Attribute  from casterunit
        SpÃ_nač - Turn off Dash Move Same Speed <gen>
        Animace - Reset casterunit's animation
--------------- my addon --------
        Wait 0.10 seconds
        Set Player[10] = (Owner of [B](Triggering unit)[/B])
        Jednotka - Create 1 Charge for Player[10] at castloc facing StandardnÃ_ orientace budov degrees
        Set Hero[10] = (Last created unit)
        Jednotka - Hide Hero[10]
        Hrdina - Create Charge and give it to Hero[10]
        Hrdina - Order Hero[10] to use (Last created item) on Hero[9]
        Wait 0.01 seconds
        Jednotka - Remove Hero[10] from the game
        Wait 0.01 seconds
        Custom script:   call RemoveLocation(udg_target)
        Custom script:   call RemoveLocation(udg_castloc)

Try to change Casting unit to Triggering unit.

I don't understand what you told us is wrong. Sliding or Bashing?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
so make when hero use the skill of type dash damage targeted unit and about the stun im not sure if its possible or not with triggers
 

Sooda

Diversity enchants
Reaction score
318
Creat dummy unit make ability what has 100 % to stun target for your ammount of time. If unit gets dashed creat dummy unit and order it to attack targeted unit. Or add a stun buff to unit and after some time remove it. Or use dummy with storm hammer (Mountain King ability), order dummy unit to target dashed unit with Storm Hammer. Conclusion- yes you can.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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