• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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