Making a passive "Thunder Clap" ability

SutinG

Member
Reaction score
1
Hi,
I need to do an ability, and I need some help...

"Gives a % chance that an attack will deal some damage to nearby enemy units and slows his movement speed."

Is the same that does the "Thunder Clap", but I want to convert it in a passive ability.

Thanks in Advance.
 

Man-o-Bomb

New Member
Reaction score
30
The Orb of Lightning gives the hero a chance to cast purge on the enemy. Find that spell under Object -> Spells -> Items. Then you can set the chance and what spell to be cast.
 

SutinG

Member
Reaction score
1
The Orb of Lightning gives the hero a chance to cast purge on the enemy. Find that spell under Object -> Spells -> Items. Then you can set the chance and what spell to be cast.

Thanks, but I need that the ability works exactly like the Thunder Clap, in an AOE.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
Base it of any passive ability (I always use evasion)

then do this:

Trigger:
  • trigger
    • events
      • unit is attacked
    • conditions
      • level of [ability] for attacking unit greater than or equal to 1
    • actions
      • if then else
        • if random real number between 1.00 and 100.00 less than or equal to XX
          • then
            • set clap_point = position of attacked unit
            • unit - create 1 dummy at clap_point for owner of attacking unit
            • unit - add thunder clap to last created unit
            • unit - order last created unit to Human Mountain King - thunder clap
            • unit - give a 1.00 second water elemental expiration timer to last created unit
            • call RemoveLocation(udg_clap_point)
          • else
 

Nappe

New Member
Reaction score
5
Code:
Skill
    Events
        Unit - A unit is Attacked. 
    Conditions
        (Level of [Ability name] for (Attacking unit)) Greater than 0
        (Random integer number between 1 and 100) Lesser than or equal to 10
    Actions
        Set Point = (Position of (Attacking unit))
        Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at Point facing Default building facing (270.0) degrees
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Add Thunder Clap Dummy  to (Last created unit)
        Unit - Set level of Thunder Clap Dummy for (Last created unit) to (Level of Skill  for (Attacking unit))
        Unit - Order (Last created unit) to Human Mountain King - Thunder Clap 
        Custom script: call RemoveLocation (udg_Point)

This would mean that when a unit is attacked and the attacker has this passive ability, there is 10% chance to create a dummy at his position and order it to cast thunder clap. But when making this dummy, make sure it has mana to cast the thunder clap and change the damage and slow to your liking.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
The Orb of Lightning gives the hero a chance to cast purge on the enemy. Find that spell under Object -> Spells -> Items. Then you can set the chance and what spell to be cast.

Orb of lightning (new) doesn't work with no-target spells

It would be so much easier to make some spells if it did :(
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top