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!
I think you can't do this. If you want to make some kind of AI for a unit that has na ability based on Channel, make this via dummy units. Channel based spells are made for human player only.
(At least as far as I know)
The channel spell hads an order ID (Data - Base Order Id, e.g.: "thunderbolt"). This order ID represents what should be used in the GUI action (in the case of "thunderbolt", it should be the Mountain King's Storm Bolt).
Note that this isn't always possible in GUI: if you gave a unit-target spell the order ID "thunderclap", then you won't be able to use it (as "thunderclap" is listed under "no target").
However, in that case, you can still use the JASS-form IssueTargetOrder(caster, "thunderclap", target).
I think I found a better way some minutes ago: call IssueTargetOrder (unit, "channel", targetUnit).
However what I was trying to do is make a unit cast mana shield on another unit trought this spell, but I have no idea how and so far I'm failing a big time
The channel spell hads an order ID (Data - Base Order Id, e.g.: "thunderbolt"). This order ID represents what should be used in the GUI action (in the case of "thunderbolt", it should be the Mountain King's Storm Bolt).
Note that this isn't always possible in GUI: if you gave a unit-target spell the order ID "thunderclap", then you won't be able to use it (as "thunderclap" is listed under "no target").
However, in that case, you can still use the JASS-form IssueTargetOrder(caster, "thunderclap", target).
I don't really know what you mean.
Is it that you've got a spell based on channel with as order ID "manashieldon"?
Or are you actually trying to create a unit target-ability that makes the targeted unit have the ability "mana shield" (lose mana instead of HP)?
No ehm, forget the mana shield you know the dota linken sphere effect?, absorb all damage and recharges after 20 secs?. I want it :/, I was talking about the mana shield cuz was the most alike spell.
I have no idea what spell you are writing about (I never really played DotA... if the spell is in DotA, then look http://www.playdota.com/heroes and maybe show me which spell )
So to make it clear - Do you have problem with a unit casting your spell or do you have problems creating/triggering the spell itself?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.