Warcraft III resources & community, 2003–2006 · archived

Only one Spell effect

4 posts
#1

Only one Spell effect

I was wondering how to make it so that only one unit may be put under the effect of a spell per hero, so in this instance the mage can only polymorph 1 unit at a time and when the buff runs out then that particular mage can cast again.
#2
Every 1 Second of Game Time

Actions

Custom Script: set bj_wantDestroyGroup = true

Unit Group - Pick Every Unit with buff Polymorph and add 25 to Picked Unit's life ( or something like that )
#3
Well decided to use

Polymorph HP Regen Detect
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (((Picked unit) is Polymorphed) Equal to True) then do (Advanced - Heal (Picked unit) for (Random percentage) hitpoints) else do (Do nothing)

For the healing, btw anyone know if its possible to hide the healing effect?
#4
uuh... if its a function, its probably built in, so just use Set Unit Life.

BTW, put that if condition IN the group enum, to prevent lag, and add that Custom Script from mine at the top to prevent leaks.