HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Aquisition Range Trigger Question

04-06-2004, 12:43 AM#1
Sir-Stoned-Alot
Is there a trigger that can make it so when a unit casts a dummy spell, the casting unit has an aquisition range of 0 (It does not attack enemies unless you tell it to) and make it so its aqusition range returns to normal when the spell is deactivated (Immolation is dummy)
04-06-2004, 10:57 AM#2
johnfn
I think the best way is to replace the casting unit with a dummy unit with no acquisistion range. Then when the dummy unit uncasts the spell, make the origional unit come back and remove the dummy.
04-06-2004, 12:25 PM#3
Sir-Stoned-Alot
i had thought of that but it would mess with my other triggers, then i stumbled upon Action-Unit-Set Aquisition Range ^_^
04-06-2004, 05:36 PM#4
Ligature
I've heard from multiple sources that setting a unit's acquisition range to zero does NOT prevent it from attacking on its own... Maybe you could do some ally-and-ownership trickery...

Say the user is Player 1 (Red). Have Player 2 (Blue) be mutually allied with Red, and have full shared control/visibility. Then have Blue ally with all enemy players (but don't ally the enemy players to Blue). Then when you want to switch a unit so he won't attack the enemies, change his ownership to Blue (keep his colors the same though) and when you want him to attack, change him back to Red.

I've never tried this of course. Let me know if it works!
04-07-2004, 10:50 PM#5
sans
What about setting the range to 1? There is also a trigger that says something along the lines of "Stop unit from autoacquiring" unless I'm just drunk and I'm imagining things...


But then again... I had the idea that if a unit is given a command without a target/point (stop, which is automatically given when a unit reaches the desired move-to point) then give that unit the command 'hold' That way it will only attack if it's ranged, and then only what's within range.

Is there a way to disable/set a units attacks usage "attack 1, attack 2, both" with triggers? If they can't attack, they can't acquire. =D Haha.. that's sounds like a real dick thing to do though.... <idea> Admin controls just got *really* interesting.