• 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.

Spell which gives faster attack speed+ critical strike

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
I need to create spell which increases unit attack speed and gives chance to do critical strike for amount of Time . any idea how? Basicaly my idea is connection of Berserk and critical strike
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
You could try this :

- Create a custom Critical Strike ability and set its position to (x0,y-11)
- Create another custom ability based on Berzerk ability.
- Make a trigger that adds the custom Critical Strike ability whenever the unit cast the Berzerk ability.


  • Add Critical Strike
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berzerk
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempUnit = (Casting unit)
      • Unit - Add Custom Critical Strike to TempUnit
      • Countdown Timer - Start Berzerk as a One-shot timer that will expire in 12.00 seconds
  • Remove Critical Strike
    • Events
      • Countdown Timer - Berzerk expires
    • Conditions
    • Actions
      • Unit - Remove Custom Critical Strike from TempUnit
      • Trigger - Turn on (Add Critical Strike)
 
I said for amount of time, so timed ability

My bad, didn't read.

You could try this :

- Create a custom Critical Strike ability and set its position to (x0,y-11)
- Create another custom ability based on Berzerk ability.
- Make a trigger that adds the custom Critical Strike ability whenever the unit cast the Berzerk ability.


  • Add Critical Strike
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berzerk
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempUnit = (Casting unit)
      • Unit - Add Custom Critical Strike to TempUnit
      • Countdown Timer - Start Berzerk as a One-shot timer that will expire in 12.00 seconds
  • Remove Critical Strike
    • Events
      • Countdown Timer - Berzerk expires
    • Conditions
    • Actions
      • Unit - Remove Custom Critical Strike from TempUnit
      • Trigger - Turn on (Add Critical Strike)

You beat me to it :p

Here is mine at least (map attached if you want to copy):
  • Rage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Rage
    • Actions
      • Set RageCaster = (Triggering unit)
      • Special Effect - Create a special effect attached to the left hand of RageCaster using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
      • Set RageEffect1 = (Last created special effect)
      • Special Effect - Create a special effect attached to the right hand of RageCaster using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
      • Set RageEffect2 = (Last created special effect)
      • Special Effect - Create a special effect attached to the weapon of RageCaster using Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
      • Set RageEffect3 = (Last created special effect)
      • Countdown Timer - Start RageTimer as a One-shot timer that will expire in 20.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 1
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 1 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 1 to RageCaster
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 2
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 2 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 2 to RageCaster
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 3
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 3 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 3 to RageCaster
        • Else - Actions
  • Rage Timer
    • Events
      • Time - RageTimer expires
    • Conditions
    • Actions
      • Trigger - Run Remove buffs <gen> (checking conditions)
  • Rage Caster Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to RageCaster
    • Actions
      • Trigger - Run Remove buffs <gen> (checking conditions)
  • Remove buffs
    • Events
    • Conditions
    • Actions
      • Special Effect - Destroy RageEffect1
      • Special Effect - Destroy RageEffect2
      • Special Effect - Destroy RageEffect3
      • Unit - Remove Critical Strike (item) LvL 1 from RageCaster
      • Unit - Remove Critical Strike (item) LvL 2 from RageCaster
      • Unit - Remove Critical Strike (item) LvL 3 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 1 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 2 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 3 from RageCaster

This is not MUI btw, not sure if you need it to be or not.

Critical strike and Attack speed is based off item abilities so they won't show in your ability bar. I made 1 custom ability per level, and edited their properties accordingly. Download the map if you want to check the spells etc.

Edit: Nvm lol, critical strike shows in the ability bar. Follow Warseekers advice about spell positions then.
 

Attachments

  • Rage.w3x
    19.4 KB · Views: 23
Last edited:
Level 12
Joined
Jul 17, 2013
Messages
544
My bad, didn't read.



You beat me to it :p

Here is mine at least (map attached if you want to copy):
  • Rage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Rage
    • Actions
      • Set RageCaster = (Triggering unit)
      • Special Effect - Create a special effect attached to the left hand of RageCaster using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
      • Set RageEffect1 = (Last created special effect)
      • Special Effect - Create a special effect attached to the right hand of RageCaster using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
      • Set RageEffect2 = (Last created special effect)
      • Special Effect - Create a special effect attached to the weapon of RageCaster using Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
      • Set RageEffect3 = (Last created special effect)
      • Countdown Timer - Start RageTimer as a One-shot timer that will expire in 20.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 1
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 1 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 1 to RageCaster
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 2
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 2 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 2 to RageCaster
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Rage for RageCaster) Equal to 3
        • Then - Actions
          • Unit - Add Critical Strike (item) LvL 3 to RageCaster
          • Unit - Add Item Attack Speed Bonus (Greater) LvL 3 to RageCaster
        • Else - Actions
  • Rage Timer
    • Events
      • Time - RageTimer expires
    • Conditions
    • Actions
      • Trigger - Run Remove buffs <gen> (checking conditions)
  • Rage Caster Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to RageCaster
    • Actions
      • Trigger - Run Remove buffs <gen> (checking conditions)
  • Remove buffs
    • Events
    • Conditions
    • Actions
      • Special Effect - Destroy RageEffect1
      • Special Effect - Destroy RageEffect2
      • Special Effect - Destroy RageEffect3
      • Unit - Remove Critical Strike (item) LvL 1 from RageCaster
      • Unit - Remove Critical Strike (item) LvL 2 from RageCaster
      • Unit - Remove Critical Strike (item) LvL 3 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 1 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 2 from RageCaster
      • Unit - Remove Item Attack Speed Bonus (Greater) LvL 3 from RageCaster

This is not MUI btw, not sure if you need it to be or not.

Critical strike and Attack speed is based off item abilities so they won't show in your ability bar. I made 1 custom ability per level, and edited their properties accordingly. Download the map if you want to check the spells etc.

Edit: Nvm lol, critical strike shows in the ability bar. Follow Warseekers advice about spell positions then.
I will check it later
 
Level 12
Joined
Jul 17, 2013
Messages
544
You could try this :

- Create a custom Critical Strike ability and set its position to (x0,y-11)
- Create another custom ability based on Berzerk ability.
- Make a trigger that adds the custom Critical Strike ability whenever the unit cast the Berzerk ability.


  • Add Critical Strike
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berzerk
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TempUnit = (Casting unit)
      • Unit - Add Custom Critical Strike to TempUnit
      • Countdown Timer - Start Berzerk as a One-shot timer that will expire in 12.00 seconds
  • Remove Critical Strike
    • Events
      • Countdown Timer - Berzerk expires
    • Conditions
    • Actions
      • Unit - Remove Custom Critical Strike from TempUnit
      • Trigger - Turn on (Add Critical Strike)
Yeah but uh how to include herę ability lvl? And give better critical at lvl 2 of ability
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
Yeah but uh how to include herę ability lvl? And give better critical at lvl 2 of ability
Just follow what @FeelsGoodMan said. Make 3 custom critical strike ability (lvl 1,lvl2,etc...) and add them to the caster whenever he cast that ability.
i.e :
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of Berzerk for (TempUnit) Equal to 1
    • Then - Actions
      • Unit - Add Custom Critical Strike (Level 1) to (Triggering unit)
    • Else - Actions
 
Status
Not open for further replies.
Top