• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Attack Power

Status
Not open for further replies.
Level 2
Joined
Dec 27, 2010
Messages
20
I got a problem with a spell. I wanted to make it with GUI. The spell effect that it's decrease the Targeted Unit of Ability Being Cast power by 50%. I don't know how I can make it. Please help. :goblin_boom:
 
Attack Power? As in Damage?

I suggest you make a Dummy Unit and give it Inner Fire. Set Inner Fire to 0 bonus armor, 0 bonus life regen and 50% bonus damage. Use triggers to create the Dummy Unit and set an expiration timer to it, then order it to cast Inner Fire on the target.
 
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to YOUR SPELL
    • Actions
      • Set Loc = (Position of (Target unit of ability being cast))
      • Unit - Create 1 DUMMY UNIT for (Owner of (Triggering unit)) at Loc facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Human Priest - Inner Fire (Target unit of ability being cast)
      • Custom script: call RemoveLocation(udg_Loc)
Also I misread decrease and though it was increase. Either set Inner Fire's bonus damage to -50% and change the buff color of it to red to make it look negative. Or, a better choice would be to use another dummy ability that simply decreases a units damage, Howl of Terror for instance.
 
I think you guys must have misunderstood him...
He said Attack Power, meaning the targeted unit's Physical Damage, the 40 - 45 to be reduced to 50%

Just base on "Cripple" spell
Data - Attack Speed Reduction -> 0.00
Data - Damage Reduction -> 0.50 (standard values in world editor)
Data - Movement Speed Reduction -> 0.00

And you're done :)
No trigger is needed

But if you're still wanna do it in Trigger Editor...
Here's a test map, download and test it :)
 

Attachments

Status
Not open for further replies.
Back
Top