HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Enable/Disable Unit's Attack

12-11-2003, 01:09 AM#1
RaeVanMorlock
I need to make a unit that has no damage but can use an ability to temporarily add damage.

Using 1d0 seems to be the only combination of the two values that will allow me to add the damage, but it also gives the unit 1 base damage, and I can't have that.
12-11-2003, 05:14 AM#2
Aristotle
The game has two damage functions, the random damage (e.g. XdY damage) and the added damage (e.g. XdY+Z)

You have set X to be 1, Y to be 0, and you get a damage of 1-1, thus Z must be set as 1

Go find the unit's Z variable (added dmg) and modify it to 0.
12-11-2003, 02:56 PM#3
RaeVanMorlock
I think you're confused, Aristotle -- or maybe I am...


0d0 = no attack
0d1 = no attack
1d0 = 1-0 damage
1d0+1 = 2-1 damage


The problem is, if I use the ability to add damage to the unit while he's set at 0d0 or 0d1, he's still unable to attack. And if I use 1d0 than he always has that 1 damage.
12-11-2003, 08:52 PM#4
AIAndy
Have a look at this thread:
http://www.wc3campaigns.com/forums/s...threadid=32622

Although i am not sure if removing/adding the attack ability only changes the icon.

Another possibility would be to have an ability that reduces the damage of the unit or make it miss 100%.