• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Attack Speed Increase

Status
Not open for further replies.
Alright, thanks for taking interest.

Well, I'm making a skill that damages an enemy and stuns him for X seconds. I also want to make the unit that cast it attack X% faster for X seconds.

I also know about the Integer Comparison that detects how high the level is.

It will be like:

  • Atk Spd Increase V1
    • Events
      • Unit - (Unit) finishes casting an ability
    • Conditions
      • Ability being cast Equal to (Ability)
    • Actions
      • Function that makes (Casting Unit) attack faster for X seconds
 
• Base the spell off Storm Bolt (which will provide the stun and the damage).
• Make a custom spell out of the Orc Shaman's Bloodlust; remove mana cost, set levels and adjust values to the attack speed you want. Delete values related to Movement Speed. Set Data - Scaling factor to 0.
• Make a dummy unit.
• Create this trigger.
  • Spell
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Unit - Create 1 dummy for (Owner of (Triggering unit)) at Point1 facing default building degrees
    • Unit - Add Bloodlust (custom) to (Last created unit)
    • Unit - Set level of Bloodlust (custom) for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
    • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
    • Unit - Add a 2.00 seconds generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation (udg_Point1)
 
I just change:
  • Unit - Add a 2.00 seconds generic expiration timer to (Last Created Unit)
that trigger's amount of seconds to how long the duration will be? Or do I have to make separate triggers for each level?

Like:
  • AtkSpd V1 Detect
    • Events
      • Unit - (Unit) finishes casting an ability
    • Conditions
      • Ability being cast Equal to (Ability) and Level of (Skill being cast) Equal to 1
    • Actions
      • Unit - Change ownership of (Unit with Endurance Aura with values of v1 attack spd increase) to (Allied Player) and Change Color
      • Wait Level 1 duration seconds
      • Unit - Change ownership of (Same unit) to (Enemy) and Change Color
Then, that's it, it changes per skill level. C 'n P-ing triggers. I don't use Custom Scripts because it won't let my game start, making errors or something....
I'll try mine first then yours, if yours goes a lot better than mine (Which it probably is).
 
Level 7
Joined
Jun 14, 2009
Messages
235
I just change:
  • Unit - Add a 2.00 seconds generic expiration timer to (Last Created Unit)
that trigger's amount of seconds to how long the duration will be? Or do I have to make separate triggers for each level?

Like:
  • AtkSpd V1 Detect
    • Events
      • Unit - (Unit) finishes casting an ability
    • Conditions
      • Ability being cast Equal to (Ability) and Level of (Skill being cast) Equal to 1
    • Actions
      • Unit - Change ownership of (Unit with Endurance Aura with values of v1 attack spd increase) to (Allied Player) and Change Color
      • Wait Level 1 duration seconds
      • Unit - Change ownership of (Same unit) to (Enemy) and Change Color
Then, that's it, it changes per skill level. C 'n P-ing triggers. I don't use Custom Scripts because it won't let my game start, making errors or something....
I'll try mine first then yours, if yours goes a lot better than mine (Which it probably is).

i din't understand your trigger, you change unit ownership?

also, the "generic expiration timer" its like the time on a summoned unit. 2 secs means it dies in 2 seconds
 
I've finished the trigger..

  • AtkSpd V1
    • Events
      • Unit - (Unit) finishes casting an ability
      • Unit - (Unit) stops casting an ability
    • Conditions
      • (Ability being cast) Equal to (Ability) and Level of (Ability) of (Unit) Equal to 1
    • Actions
      • Unit - Change ownership of (Unit with Endurance Aura with values of V1 Attack Speed increase of the skill) to (Allied Player) and Change Color
      • Wait Level 1 Duration Seconds
      • Unit - Change ownership of (Same Unit) to Neutral Hostile and Change Color
It works perfectly!
 
Status
Not open for further replies.
Top