• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Detect If auto-cast is enabled

Status
Not open for further replies.
Level 6
Joined
Oct 23, 2006
Messages
223
Im making a spell called Heroic Strike. It's an autocast spell based on searing arrows that is supposed to war stomp each time the unit attacks.

I used "event-effect of spell starts" and "event-unit begins casting a spell", it only works if i manually cast the spell but the triggers don't activate when my hero auto-cast uses it. Can anyone help me solve this?

Oh yeah how do you put a text at the very end of a description? Like how heroes in maps have "str 24+2.4 and agi 17=1.7 and int 15=1.5" all lined up at the bottom of the description. Do they manually find the correct amount of spaces for this?
 
Level 11
Joined
Jul 12, 2005
Messages
764
Event - Unit is issued an order
Cond - Level of Heroic Strike for Triggering Unit is greater than 0
Action -
If Issued order is equal to "flamingarrowson"
Set HeroicStrike = 1
If Issued order is equal to "flamingarrowsoff"
Set HeroicStrike = 0

Event - Unit is attacked
Cond -
Level of Heroic Strike for Attacking Unit is greater than 0
Mana of Attacking Unit is greater then or equal to [Manacost of Haroic Strike]
HeriocStrike is equal to 1
Action -
Dummy casts a war stomp...

Note that this doesn't work if the ability has cooldown.
 
Status
Not open for further replies.
Top