Warcraft III resources & community, 2003–2006 · archived

Adding ability with spell with expiration timer

2 posts
#1

Adding ability with spell with expiration timer

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 :?:
#2
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