Extreme attackspeed increase.

Unima

New Member
Reaction score
1
Howdy!

I have this problem where my customhero with an Attack Cooldown set to 2.8 sec, and when it receives a buff that increases the attackspeed by 802% she doesent attack very fast...

I even tried raising it over the attackspeed increase cap.. up to 3000%.. still no progress... =/

There is nothing wrong with the trigger itself. I have it fully working, i just want it to place the buff and increase the attack speed significantly.

Im kinda lost here.
:p

Edit: Lol, forgot to say that Backswing and Damage point are at 0
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
try setting your units normal cooldown to 0 and see if she attacks as fast as you want, if she dosen't try changeing the animated back swing and damage point to .001 then set the cooldown back to what you wanted it to be.

Some times 0 means default value, however I don't know if it is thaat way with the backswing and stuff.

Edit are you useing triggers to increase the attack speed, it would be better just to use the item attack speed bonus set as a hero skill, then use a trigger to add and remove the spell as you like.
 

Manix

Well-Known Member
Reaction score
29
Well you can try replacing it with another unit ? Like when the spell is activated replace triggering hero with another custom hero with like 0.1 attack power or sth..

Note: don't forget to set the level of the skills for triggering unit to last created unit and most importantly select the last created unit for owner of triggering unit!
 

Advena

Just casually observing atm ;)
Reaction score
42
Dameon said:
it would be better just to use the item attack speed bonus set as a hero skill, then use a trigger to add and remove the spell as you like.

That's what I'd do. Easy and seamless :)
 

Unima

New Member
Reaction score
1
Thanks for all the replies.

Sorry manix but that aint possible, not without having to go the long way around.
The other suggestions failed aswell, except for Advena's.. I haven't tried it yet.. but I will!
 

Unima

New Member
Reaction score
1
I tried what Advena and Dameon said, perhaps I did it wrong.. Because it doesent work..

Code:
Arcane Huntress Opportunity
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) has buff Opportunity ) Equal to True
    Actions
        Unit - Add AttackSpeed  to (Attacking unit)
        Unit - Set level of AttackSpeed  for (Attacking unit) to (Level of Arcane Opportunity  for ArcaneHuntress)
        Wait 3.00 seconds
        Unit - Remove AttackSpeed  from (Attacking unit)
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
The (Attacked Unit) part is prolly getting overwritten, do this instead: Edit: (Pretty sure this isn't MUI either..)

Code:
Arcane Huntress Opportunity
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) has buff Opportunity ) Equal to True
    Actions
        Set Attacker[Player number of (Owner of (Attacking Unit))] = (Attacking Unit)
        Unit - Add AttackSpeed  to Attacker[Player number of (Owner of (Attacking unit))]
        Unit - Set level of AttackSpeed  for Attacker[Player number of (Owner of (Attacking unit))] to (Level of Arcane Opportunity  for ArcaneHuntress)
        Wait 3.00 seconds
        Unit - Remove AttackSpeed  from Attacker[Player number of (Owner of (Attacking Unit))]
 

Unima

New Member
Reaction score
1
Code:
        Set Attacker[Player number of (Owner of (Triggering unit))] = (Attacking Unit)

The triggering unit is the one that gets attacked... Is that relevant?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
That's why I meant to put something new. Messed up. Sorry....

It's fixed, but may not be Mui.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
make a unit varible, then as the first action do set varible, Unit and use that varible to refer to the unit from that point on.

Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) has buff Acid Bomb) Equal to True
    Actions
        Set Unit = (Attacking unit)
        Unit - Add Acid Bomb to Unit
        Wait 3.00 seconds
        Unit - Remove Acid Bomb from Unit

but with this code there can be only 1 unit useing the ability at a time.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
That's exactly what my trigger is doing...?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
custom script: local unit udg_attacker
set attacker = attacking unit
do whatever
wait however long you want
custom script: set udg_attacker = null

>but may not be Mui.
May not? May not? Ehm, may not? Of course it is not.

>Level of Arcane Opportunity for ArcaneHuntress)
Whats this? Sure the level of arcane opp. for ArcaneHuntress is greater than 0?

>>802% she doesent attack very fast
Does it increase at all?
 

Unima

New Member
Reaction score
1
Code:
custom script: local unit udg_attacker = attacking unit
do whatever
wait however long you want
custom script: set udg_attacker = null

>but may not be Mui.
May not? May not? Ehm, may not? Of course it is not.

>Level of Arcane Opportunity for ArcaneHuntress)
Whats this? Sure the level of arcane opp. for ArcaneHuntress is greater than 0?

>>802% she doesent attack very fast
Does it increase at all?

Yes 802% does increase the attackspeed significantly but nowhere close to where it should be.

Yes I am sure that Arcane Opportunity is higher level than 0, there is a condition that confirms that you have the buff. To have the buff, you need to have atleast lvl 1 in Arcane Opportunity.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
if you look at my trigger it not an array, it is just a unit, you lose the attacking unit after the wait so it dosen't know how to ref it.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
if you look at my trigger it not an array, it is just a unit, you lose the attacking unit after the wait so it dosen't know how to ref it.

-_-... Don't misunderstand. I was trying to help make it MUI.. Alas, I'm not good at MUI, unless it's in JASS.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Lol I just found a way to do this and the funny thing is if it was done on a single trigger it would not work, I guese when you use 1 trigger to run another the waits no longer matter.

Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) is A Hero) Equal to True
        (Level of Attack Speed (Gloves of Haste) for (Attacking unit)) Less than 1
    Actions
        Unit - Add Attack Speed (Gloves of Haste) to (Attacking unit)
        Game - Display to (All players) the text: added
        Trigger - Run Untitled Trigger 002 <gen> (checking conditions)

Code:
Untitled Trigger 002
    Events
    Conditions
    Actions
        Game - Display to (All players) the text: (Name of (Attacking unit))
        Wait 3.00 seconds
        Unit - Remove Attack Speed (Gloves of Haste) from (Attacking unit)
        Game - Display to (All players) the text: Removed


The messages are just for testing.
 

vypur85

Hibernate
Reaction score
803
I thought the max attack speed able to increase on a unit is around 400%. It won't go higher than that. (This was based on my observation on some threads a very long time ago). (Edit: Nah... I think I'm wrong in this.)


> messages are just for testing

Have you tried the combined version with the text message? The single trigger version and your version seem to be the same and should work the same. Hmm...

Anyway, ManyTimes has already provided the Local/Global method. It would be MUI that way. But something weird might happen when there's multiple attack stacking... The ability might be unintentionally get removed.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
each unit has it's own max attack speed based on the animated back swing and the damage point, depending on the default cooldown you can have it well over 400%.

Edit. On a normal 1 version trigger the wait will cancel out (or clear) the atacking unit info.

Edit 2: lol it still works even changeing the wait to 10 secounds lol
 
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