• 🏆 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!

[Trigger] Autocast triggeredspell issue [GUI]

Status
Not open for further replies.
Level 2
Joined
Feb 23, 2004
Messages
26
Hi there, I've read the forums for a while now but never really asked anything.
I 'd hope you could lend me some help because I'm a bit confused.

I've read an old tutorial called "Making any Spell Autocasting".
While it works perfectly, since it's based on searing arrow, it uses an attack cooldown time (the hero miss an attack while casting the spell).

Now two problems.
I'd like to make one of these autocast spells with a melee hero, thus that cannot use searing arrow because it's ranged. The autocast spell is in fact a additionnary stronger attack, so I'd like it to not consume an attack cooldown time.

Now I've tried with another autocast spell, Curse from the banshee. Works fine, but there is an anoying detail : the autocast spell can't activate if you ordered the hero to attack a single target. It only works if you do the "attack move" orders.

You guys have any ideas ?


The tutorial : http://www.hiveworkshop.com/forums/...orials-279/making-any-spell-autocasting-6255/
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
i can make it work but you need to tell me what does your spell do

if it is just bonus attack it will be easy....if it is...
take arrows

TRIGGER
Event-unit is ordered with no target
Conditions-unit type of triggering unit equal to YOUR UNIT TYPE
Actions-
IF
issued order equal to arrowson
THAN
-add ability that gives X damage to triggering unit
(you can use ability from claws of attack item)
ELSE
-IF
-issued order equal to arrowsoff
-THAN
-remove (your ability that gives X damage) from triggering unit
-ELSE

issued order might not be arrowoff maybe its coldarrowesoff
...anyway you can read it in ability (scroll down)
 
Level 2
Joined
Feb 23, 2004
Messages
26
Thanks for your answers.

I've tryed with bloodlust, it's the same : the hero won't cast anything in autocast if he's ordered to attack a single target (w right click).

if it is just bonus attack it will be easy....if it is...

This is easy to do, even with searing arrow you don't need to detect the autocast thing. The problem is that i'd like it to be an additionnary attack that doesn't interupt the attack cycle. That means the hero should be able to continue attacking and between two attacks, cast a spell that look like an attack.

I've made this spell work perfectly and I'm happy with the result, the only glitch being that the autocast won't work if the hero is ordered to attack a target.
 
Status
Not open for further replies.
Top