HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell costs mana but doesn't fire (Not triggered)

01-21-2009, 11:27 PM#1
ShadowWolf
So I'm in a bit of a dilemma here. Spent all day working on my entry for the spell contest, only to hit this brick wall that kills the entire spell.

There's a trick you can do to make any active spell you want autocastable. By creating a spell based off of Orb of Lightning (New), you can select what other spell you'd like to fire at a specific % chance. This has worked fine for me in the past, but it's not behaving for me.

The first time the spell goes off, it works perfectly like it's supposed to. After that, it costs the mana, but doesn't cast it anymore. Any ideas? I'd prefer not to go and have to trigger the whole damn thing by hand.

edit: I know that this works, because I just gave the ability to a different unit type, and it worked like a charm. So what can prevent this from working correctly?
01-21-2009, 11:55 PM#2
Anitarf
I wouldn't call orb of lightning autocast... It's a completely different mechanic and tends to be buggy (like not activating when attacking an automatically acquired target).
01-22-2009, 12:00 AM#3
Jazradel
Orb of Lightning has other problems. It doesn't trigger if units are only auto-attacking and not ordered.

No idea why the ability is only working once. What active spell are you using?

Edit: Nice ninja post Anitarf.
01-22-2009, 12:10 AM#4
Kyrbi0
You can kinda get around that with a small trigger, to the effect of "unit is attacked -- attacking unit has (Orb of Lightning custom ability) -- Order Attacking unit to attack Attacked unit"
01-22-2009, 12:13 AM#5
vegavak
Quote:
Originally Posted by Kyrbi0
You can kinda get around that with a small trigger, to the effect of "unit is attacked -- attacking unit has (Orb of Lightning custom ability) -- Order Attacking unit to attack Attacked unit"

Wouldn't that loop?
01-22-2009, 12:13 AM#6
Kyrbi0
?
Oh. So? It loops, and the unit continues to attack.
01-22-2009, 12:17 AM#7
ShadowWolf
Wow.. that's exactly my problem. I didn't know about that bug. Damnit. The spell is awesome, except for that.

Mwahahahah. Thanks for you help guys, with the info you gave me, I just did a workaround by making sure that when the unit attacks, it does a direct attack, even when the target is auto-acquired. Thanks :DD

edit: Lol Kyrbs, I did that and posted this without seeing your post. It gives a slight pause to the unit when first attacking because of the re-order, but I'll see what I can do to fix it.
01-22-2009, 12:33 AM#8
Kyrbi0
No probs. Good luck getting smashed in the spell session. :P
01-22-2009, 01:55 AM#9
holyadvocate
Quote:
Originally Posted by Kyrbi0
No probs. Good luck getting smashed in the spell session. :P

SAMURAI
01-22-2009, 02:05 AM#10
ShadowWolf
Hey... Just because I got DQ'd in spell12, doesn't mean I'm gonna do it again. :P
01-22-2009, 02:20 AM#11
Bobo_The_Kodo
Falcooooooooon Punch !!!!
01-22-2009, 03:18 AM#12
Veev
You might also want to try adding the specific unit event, Unit notices a target in range, to a trigger for every unit that has one of these orb-based spells. The trigger should then have the following action:
Trigger:
Unit - Order (Triggering unit) to Attack (Targeted unit)
01-22-2009, 03:33 AM#13
Kyrbi0
^Wait, why? (I know of no "Notices a nearby target" function), yet that would just make your units super-aggressive. Just because he can see an enemy, doesn't mean you want him to attack them.
01-22-2009, 04:25 AM#14
ShadowWolf
Trigger:
Debug
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Level of Autocast for (Attacking unit)) Greater than 0
(Current order of (Attacking unit)) Not equal to (Order(attack))
Collapse Actions
Unit - Order (Attacking unit) to Attack (Attacked unit)
It looks silly, but it's very effective. The order given when a unit auto acquires isn't attack, so with the conditions provided with that specific action makes it happen only when needed, and doesn't loop every time the unit attacks. The trigger only fires on inital encounter, because after the first hit the hero is automatically reassigned to specifically "attack".
01-22-2009, 04:37 AM#15
Kyrbi0
Ah, perfect. Thanks for modifying it.