• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] How do I give a buff via Pulverize?

Status
Not open for further replies.
You could trigger it.

Create custom ability based on channel. Make it not visible, give it some follow through time.

Use the event of Unit is attacked. Randomize the chance. Order the attacking unit cast the custom Pulverize. Trigger the ability and time it right to make the effect and damage, create dummies to cast the buff.

I can do this ability tomorrow if needed.
 
As promised, here is the ability:

https://www.hiveworkshop.com/forums/pastebin.php?id=m4myzn

The chance here is 25%
  • (Random integer number between 1 and 100) Less than or equal to 25
Use order string of the ability here:
  • Custom script: call IssueImmediateOrder(GetAttacker() , "channel")
This is the time after which damage is dealt
  • Hashtable - Save 0.78 as (Key time) of Phandle in Phash
Change AoE and allowed targets here:
  • Unit Group - Pick every unit in (Units within 200.00 of PPoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A ground unit) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True)))) and do (Actions)
    • Loop - Actions
      • Unit - Cause PUnit to damage (Picked unit), dealing 50.00 damage of attack type Siege and damage type Normal
      • Unit - Create 1 Dummy for Neutral Passive at PPoint facing Default building facing degrees
      • Custom script: call IssueTargetOrder(bj_lastCreatedUnit , "slow" , GetEnumUnit())
Change damage here:
  • Unit - Cause PUnit to damage (Picked unit), dealing 50.00 damage of attack type Siege and damage type Normal
 
Status
Not open for further replies.
Back
Top