HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Help Plz - Removing Attack Ability

11-08-2003, 08:41 PM#1
Axiverse
Is there a simple way to remove a units ability to attack? like thorugh removing an ability or adding an ability?? (is it possible to remove onlt attack 1 if both are normally activated?)
11-08-2003, 09:00 PM#2
35263526
Make a custom ability based of Item Damage Bonus. Change the damage bonus to -99999999999999. Then use triggers tp give your new ability to the unit you don't want to be able to attack.

To let it attack, take the ability away using triggers.
11-08-2003, 09:00 PM#3
35263526
Make a custom ability based of Item Damage Bonus. Change the damage bonus to -99999999999999. Then use triggers tp give your new ability to the unit you don't want to be able to attack.

To let it attack, take the ability away using triggers.
11-08-2003, 09:13 PM#4
QuatreDan
Will the unit ever be able to attack? Cuz if you just want a unit that doesn't have the ability to attack...ever, than you can just set "Combat-Attacks Enabled" to None in the Unit Editor. If you want to be able to toggle that in-game...then I don't know. Actually, you could try making a trigger that:
Event-
Unit is given order to attack
Condition-
abletoattack(variable)=1
Action-
Order unit to stop

You can change the variable for when the unit can and can't attack...that was my try, so good luck with that! :D
11-08-2003, 09:45 PM#5
AllPainful
Well, you could always try setting the units Acquisition range to 1 (NOT 0, 0 = infinate)... And changing a units acquisition range can be done via triggers... But I don't know if that will do what you want...
11-08-2003, 10:01 PM#6
Grater
Remove the 'Aatk' ability
Code:
set TempUnit = (whatever)
custom script: call UnitRemoveAbilityBJ('Aatk',udg_TempUnit)
11-08-2003, 11:27 PM#7
SpectreReturns
Base a custom spell off silence. Change its data flags so that it only disables attacks. Change its AoE to 9999999, create a caster on the map, and make him cast it. Nice, simple and easy.