• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Triggered spell casting

Status
Not open for further replies.
Level 2
Joined
Feb 1, 2009
Messages
11
I'm having some trouble triggering a spell being cast.

  • Then - Actions
    • Set SpellLocatian = (Position of (Triggering unit))
    • Set SpellType = Slow
    • Unit - Create 1 InvisibleSprite for Player 6 (Orange) at SpellLocatian facing Default building facing degrees
    • Unit - Make (Last created unit) Invulnerable
    • Unit - Add SpellType to (Last created unit)
    • Unit - Hide (Last created unit)
    • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
This is the short version of what I'm doing. This works; the created sprite casts slow on the right enemy before disappearing.

But if I change the spell to anything other than Slow the sprite does nothing.

I'm pretty sure it's an ability problem, but I'm not entirely sure what's going wrong. The targets are right, the 'sprite' has enough mana, there's no time to cast, it's set on the right team... I just cant get my head around why it works for one spell, but not any others.

Any help would be appreciated. I've spent about 5 hours trialling different solutions with no luck.
 
Level 2
Joined
Feb 1, 2009
Messages
11
I tested this with a heal spell. It worked, but the only thing that worried me a little was that auto-cast wasn't turned on. I could manually cast it, and have it auto cast once selected.

Great advice. I'm at least a step closer to having the problem solved, but still have no idea why it wont work under computer control (for this spell and any number of others).

I'll keep at it, but would welcome any more suggestions.
 
Level 2
Joined
Feb 1, 2009
Messages
11
I'm going to have to say thank you for you help. I think I've worked out what went wrong, or at least managed to get the system working.

During my test, I took away the locust ability as you said. I forgot to put it back on before I went back to trying the heal spell within the system. All the other triggers I'd set up for different spells started working. Brilliant! :)

So, thanks! I've already upped your reputation. Let me know if I can be of any help to you.
 
Status
Not open for further replies.
Top