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

[Solved] Cast ability from item while being stunned

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
Hi,
My map features magical scroll items that host an ability each. These abilities are not directly registered on the items as you know it from normal wc3 but you can activate an item at a time (left-click) in order to transfer its associated ability to the unit's command card. Pressing another item will switch the displayed ability then.

For convenience, as this is only local player input-relevant, I would like to allow the player to do this even when the unit is stunned/silenced/disabled. There are a few abilities I have found that do not get casted but which trigger an early order event if you click them during stun, Defend from Footman or Call to Arms from the human Town Hall for example. However, those abilities cannot be added to items. When I do this and the unit picks up the item, the ability gets transfered to the unit's command card right away and clicking the item won't have an effect anymore.

So does anyone know a good ability or another way to fix this?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Yes, items do not check for silence.

I know you can detect the order of Berserk, at least for the normal ability, even when the unit is stunned/sleeping. Not sure about when it is silenced though.

That's strange because just tested it and it works. So there are differences between the Absk, Adef, Amdf, ANms, AEim, AHds-abilities (ability guide) and I picked the wrong ones. Berserk, Mana Shield and Immolation work fine, Defend, Magical Defense and the above mentioned Call to Arms travel to unit's command card, Divine Shield does none of both. Changing disability of the specific abilities in gameplay constants does not seem to have an effect.

Also verified on multiplayer. Of course this still has the disadvantage of delay but okay.

Case is solved, I thank you both~
 
Status
Not open for further replies.
Top