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

Adding ability with spell with expiration timer

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2004
Messages
43
Got a problem to get this working properly:


Event
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Arcane Intellect

Actions:
Set Arcane[(Player number of (Owner of (Target unit of ability being cast)))] = (Target unit of ability being cast)

Unit - Add Arcaneability to Arcane[(Player number of (Owner of (Target unit of ability being cast)))]

Wait until ((Arcane[(Player number of (Owner of (Target unit of ability being cast)))] has buff Arcane Intellect ) Equal to False), checking every 1.00 seconds

Unit - Remove Arcane from Arcane[(Player number of (Owner of (Target unit of ability being cast)))]

When casting the ability on many units it removes the ability only from the last unit. How can i make the variable index unique so the ability can be cast on multiple units :?:
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
From my knowledge, you can't. For MUI you need JASS.

Oh and btw, when you want to work with effects for spells, just use an unit starts the effect of an ability. Begins casting an ability is buggy and with it, even though the spell is disabled, the effect will still take place (and the hero will not lose mana, or start the cooldown). Try to avoid exploits!

~Daelin
 
Status
Not open for further replies.
Top