HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cast a spell on all units

03-04-2007, 11:32 PM#1
Kalvorod
I want to have all units on the map crippled. I have seen that you can use SlowAura(Tornado) to give units a buff, however this only gives a buff that does nothing.

So how can I cripple units, hopefully in a similar way.
03-04-2007, 11:54 PM#2
wantok
You could make a custom Command Aura and a custom Endurance Aura that both have negative values to mimic Cripple. Make it so they only affect self and add them to all the units on your map.
03-05-2007, 12:04 AM#3
Pyrogasm
If the effect isn't supposed to be permanent, you can just do this:
Trigger:
Actions
set TempGroup = Units in (Playable Map Area) <If you need a filter, use it here>
Collapse Unit Group - Pick every unit in TempGroup and do (Actions)
Collapse Loop - Actions
Set TempPoint = Position of (Picked unit)
Unit - Create 1 YourDummyUnit for (Owner of (Picked unit)) <Just make sure your cripple spell can target friendlies>
Unit - Add YourCrippleSpell to (Last Created Unit)
Unit - Order (Last created unit) to (Undead Warlock - Cripple) (Picked unit)
Unit - Add a 1.00 second generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_TempPoint)
Custom script: call DestroyGroup(udg_TempGroup)
That whole "non-AoE to AoE spell" trick.
03-05-2007, 12:41 AM#4
Alevice
or you could do the disabled spellbook trick for all your units.
03-05-2007, 01:11 AM#5
Dil999
Couldn't you just do
Unit Group - Pick every unit on playable map area and add a negative endurance aura+command aura, wait X seconds, then pick every unit and remove that endurance aura+command aura?
03-05-2007, 01:19 AM#6
Pyrogasm
Dil99:
Quote:
Originally Posted by wantok
You could make a custom Command Aura and a custom Endurance Aura that both have negative values to mimic Cripple. Make it so they only affect self and add them to all the units on your map.
03-05-2007, 01:27 AM#7
Dil999
Lol. I just read the first post and gave my reply -.-'
03-05-2007, 01:35 AM#8
grim001
you said you wanted ALL units on the map crippled... in that case it would be a lot simpler to just spawn 1 invisible unit in the center of the map with an aura radius large enough to cover the entire map than to give every unit an aura