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

Casting a spell after channel with long follow through time

Level 25
Joined
Jun 26, 2020
Messages
1,973
Hello, I have a channel based spell that has short follow through time value and other with a long follow through time value, if then I cast the latter then I cast the first depending of how short the follow through time value is, the spell is casted or not, but in both cases the caster lose mana and the spell doesn't have cooldown, how can I fix this?
 
that sounds like both channel spells have same base order id. Did you make sure each spell has different base order Id?
Yes, they have completely different base order ids, better I explain it more:
  • I have abilities Z, A, B based on channel with differents base ids.
  • The Z ability has 99999 follow through time value.
  • The A ability has 1.5 follow through time value.
  • The B ability has 0.75 follow through time value.
  • I cast the Z ability and the caster is "paused".
  • If then I cast the A ability, the ability is not casted.
  • If then I cast the B ability, the ability is casted.
  • In both cases the ability has no cooldown, but the caster lost the mana the ability cost.
 
What do you mean by "paused" when casting Z ability? That the Z ability has "Disable Other Abilities" flag set to "True"? Or you actually pause the caster via triggers?
I was unable to replicate your issue in new map. While casting Z ability if I click A or B abilities, both interrupt Z ability and the unit casts them normally.
 
I'd love to understand what you're trying to do, so my questions are:
  • I cast the Z ability and the caster is "paused".
I assume you mean "channeling", not "paused", is this correct? (busy casting spell, similar to how blizzard-spell is being cast)
  • If then I cast the A ability, the ability is not casted.
So it's not possible to cast A while channel Z, is this correct? It's a totally unrelated spell that have nothing to do with Z and B? (from a casting perspective)
  • If then I cast the B ability, the ability is casted.
So you should be able to cast B while channeling Z? How is this supposed to work?
Should you only enable B after channeling Z for at least 0.75 seconds? And casting B cancels hero from channeling?

Or is it:
Start channel Z, if that channels for at least 0.75 seconds, you can cast B (at no extra cost, "finishing the cast" or stoping the hero from channeling), but if you channel for a total of 1.5 seconds, you can cast A instead (finishing the cast in a similar way?)?
Do you need to decide A or B or should it just auto-decide depending on how long you are channeling the Z spell?
 
I will be even more specific, yes I was referring to channeling when I said "paused".

What I'm doing is that the "Z spell" I mentioned is a "sleep" ability that all units has and I used the Channel spell with an "unlimited" follow through time duration to simulate that, because I can still make the caster issue another order when I want.

The "A and B spells" I mentioned are just some Channel-based spells I triggered to do certain things like emulate spells like a missile or a missile barrage (I have a lot like them), so every unit has an A or B spell and the sleep ability, their follow through time durations 0.75 and 1.5 actually don't matter, I only mentioned them because that was I think the only relevant difference between them and I don't know why they behave this different like I mentioned, I only set those values for the spell not being casted instantly.

What was that behavior?
  • I cast the Z ability and the caster is channeling (and can order him to do other stuff).
  • While is channeling If then I cast the A ability, and then interrumpting the channeling, the A ability is not casted.
  • If then I cast the B ability, the ability is casted.
  • In both cases the ability has no cooldown, but the caster lost the mana the ability cost.
Here is how they are in the object editor and a video of what is happening:
Sleep (Z spell):
1767574014003.png

The other spells:
1767574058477.png
1767574086676.png


Demostration (I click the sleep spell 2 times because its a bit inconsistent):
 
Back
Top