• 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] Need some help with an ability

Status
Not open for further replies.

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
I want to make some ability that will end at the end of the duration or after the Hero attack X attack (X is a number of attack a Hero done). It's just like Ursa's Overpower in DotA. Any ideas how to do it?:vw_wtf:
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
For the second one you could do, when the spell is cast the caster has a buff
----------------------------------
Event = Unit starts the effect of a ability
Conditions = Ability is the "some ability"
Action = Set (integer) to number of attack a hero need to do
= Give unit the caster buff
--------------------------------------------------
Event = Unit is attacked
Conditions = Attacking Unit is the Name of hero and Attacking unit has the buff
Action = If (Integer) equals to 0 then remove buff else do ((integer) - 1)
--------------------------------------------------
 
Status
Not open for further replies.
Top