• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to let a computer cast a spell until its finished?

Status
Not open for further replies.
Level 7
Joined
Mar 10, 2005
Messages
55
hello everyone :),
I want a computer (player 21, I've tried neutral agressive before) to cast my customized death and deacay spell. This spell lasts 20 seconds. (I really want death and decay because of the % unit damage)
I tried using a magician and now im using a lonely tower to cast the spell.
The spell starts correctly for each caster but it always stops after approx. 3 seconds.
What am I missing? :(
 
A moderately easy workaround would be to use a channel spell which disables other input while channeling (standard feature of the spell).
Then cast Death and Decay at the target area using a dummy unit or simulate the effect using triggers.
 
could you explain this in more detail please? or even make such a spell?
I've created a channel spell but cant cast it.

Before I do anything, please clarify the exact scenario that this spell is used in.
Is it an event, like a scripted bossfight, where this is used at a certain point, or is it just a spell that a computer enemy might cast at you in any given fight, in, say, a custom melee map?
 
Im happy to use as much gui as possible.
It will be an event in a boss fight.
The spell should be "death and decay" (because I need % health drain) with the visuals of blizzard.
It will be cast on a given point.
Im using an invisible tower who can cast the spell.
I hope thats all :)
Right... first off, to rule out an AI issue, have you tried changing the owner of the tower to Neutral Hostile? Assuming that this is not a major issue in some way.
 
It always was neutrale hostile and I tried player 21 to check for differences. There's none, both stop the spell at approximately 3 seconds.
If I cast the spell myself it works for the full 20 seconds.
If there's an AI problem is it possible to turn the whole AI off for some players?
 
Last edited:
It always was neutrale hostile and I tried player 21 to check for differences. There's none, both stop the spell at approximately 3 seconds.
If I cast the spell myself it works for the full 20 seconds.
If there's an AI problem is it possible to turn the whole AI off for some players?

You may wanna just simulate the spell using a special effect and a triggered damage event. That way, you don't even need a dummy unit casting in the first place.
 
Attached an example map below. You have an ability that is based off of Breath of Fire which when cast will create a Dummy unit that is ordered to cast Death and Decay at the targeted point.

I assume the AI can't give orders to Locust (Dummy) units so I think this will work. If it doesn't you can always trigger it pretty easily.

Edit: Attached 2 maps. Death and Decay 1 is the Dummy version. Death and Decay 2 is a triggered version. Note that the triggered version isn't MUI and will bug out if you cast it again while it's already running.
 

Attachments

Last edited:
hey Uncle,
many thanks to you!
I was very busy this week so I just got some time to check your maps.
Just finished map 1 and if I use the dummy Unit in my map and its spawned for me (player 1) it works perfectly fine ;) but for player 21 or neutrale hostile it stops after 1 wave of blizzard... :confused:

Seems to be a bug of my map because in a new map it seems to work.
Has anybody an idea where to check or what to reset in the map settings?
 
Status
Not open for further replies.
Back
Top