• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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