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!
Hello, I wanna know if there is way that if a unit casted an spell without getting an error like casting Holy Bolt to a unit with full hp or enemy unit.
Thinking well, I could do something like:
1) Issues the order: set a boolean to false.
2) Spell Effect: set that boolean to true.
3) Spell Finish: check the value of the boolean.
But you just said that the fail happens before the Order/Spell Events, right?
Maybe a better way to approach this is by figuring out a different path to what you want. What do you intend to do with this information if you had it?
Maybe a better way to approach this is by figuring out a different path to what you want. What do you intend to do with this information if you had it?
I'm creating a system that when you press a button, a dummy caster cast a spell to the main selected unit, but I have to know that it happened because the button could be wasted in nothing, and need to know if there is a general way to achieve that.
If you are curious this thread is connected with these other 3:
Hello, I wanna add to my map a menu with buttons (apart of the normal UI) that I click and then I cast an spell, the thing is, how can I do it for spells with target? I was thinking something like: Press Button>Select a dummy caster>Force UI Key>Cast the spell>Deselect the dummy caster But I...
Hello, I'm trying something like this: local data = nil local t = CreateTrigger() ForForce(GetPlayersAll(), function () BlzTriggerRegisterPlayerSyncEvent(t, GetEnumPlayer(), "focus", false) end) TriggerAddAction(t, function () data = BlzGetTriggerSyncData() end) ---@param p any...
Then yes checking that the order issued to the dummy returned true will confirm that the unit was able to cast the spell at the time it was issued. If, say, the unit gets stunned between the order and when it is actually cast (and then reordered something else so the spell is never cast)… then the order would have returned true but the spell was never cast. That seems unlikely with dummy units but in principle it could happen with an immobile dummy unit and the target leaving vision before the cast goes off.
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.