HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Setting or Adding to Unit's Attack Damage

03-23-2005, 12:43 AM#1
Nemesis9x
Is there a way you can set or add to a unit's attack damage using JASS? I don't think there is a GUI trigger for it. If there is a way please show me the string for it.
03-23-2005, 01:45 AM#2
curi
you can make an ability (base off say claws of attack) and add that.
03-23-2005, 03:31 AM#3
Nemesis9x
Quote:
Originally Posted by curi
you can make an ability (base off say claws of attack) and add that.

Ya, I was gonna turn to that as a last resort if there is no way to do it.
03-23-2005, 03:43 AM#4
Nemesis9x
I figured out a way that will work pretty well. I made an ability off claws of attack and make it have 100 levels (Thank god for auto fill). Than I can have triggers set appropriate level.
03-23-2005, 04:58 AM#5
curi
yeah. also i've heard of people using upgrades for this kind of thing. unfortunately you can't unresearch those.
03-23-2005, 03:31 PM#6
Vexorian
Quote:
Originally Posted by Nemesis9x
I figured out a way that will work pretty well. I made an ability off claws of attack and make it have 100 levels (Thank god for auto fill). Than I can have triggers set appropriate level.
Seems like an awful idea, it would only take you to up to 100 damage and you use a lot of data, you should just use 8 abilities that add powers of 2, with them you are able to get to any number between 0 and 511, or use bonusmod
03-23-2005, 05:50 PM#7
Nemesis9x
Quote:
Originally Posted by Lord Vexorian
Seems like an awful idea, it would only take you to up to 100 damage and you use a lot of data, you should just use 8 abilities that add powers of 2, with them you are able to get to any number between 0 and 511, or use bonusmod

I don't really understand the 0-511, but I ran into a problem cause I wanted to increase their HP using the item ability that increases HP but for some reason with each level the ability does not go up, but for the claws of attack ability it does. So I used the beserker upgrade and it worked perfect but with a 100 levels .
03-23-2005, 06:47 PM#8
curi
say you made 4 abilities that added 1, 2, 4, and 8 damage.

you can give +3 damage by giving the +1 and the +2. you can get 5 by combining 1 and 4. 6 from 2 and 4. 7 from 1,2,4. all the numbers from 1-15

use 8 abilities and you can get up to 511. (edit: actually only 255 isn't it? but 10 abilities would be 1023)

having abilities with lots of levels = lots of data = may make map load slow, use lots of memory. one with 100 levels probably fine I'm guessing, but 20 with 1,000 levels maybe isn't. would have to test to find out when it becomes a problem.
03-23-2005, 07:16 PM#9
Nemesis9x
Quote:
Originally Posted by curi
say you made 4 abilities that added 1, 2, 4, and 8 damage.

you can give +3 damage by giving the +1 and the +2. you can get 5 by combining 1 and 4. 6 from 2 and 4. 7 from 1,2,4. all the numbers from 1-15

use 8 abilities and you can get up to 511. (edit: actually only 255 isn't it? but 10 abilities would be 1023)

having abilities with lots of levels = lots of data = may make map load slow, use lots of memory. one with 100 levels probably fine I'm guessing, but 20 with 1,000 levels maybe isn't. would have to test to find out when it becomes a problem.

Thanks for the information, I am just having one upgrade that has 100 levels and the load hasn't seemed to increase at all and everything seems to work right. In my map I only need 1-100 levels and nothing more so this will work best for me and will only require one trigger.
03-26-2005, 12:58 AM#10
TheNyne
Quote:
Originally Posted by curi
yeah. also i've heard of people using upgrades for this kind of thing. unfortunately you can't unresearch those.

There is a way around that. You could make another upgrade with negative amount of damage/whatever that is being added. Just have to use the two upgrades accordingly.

And, you might want to go more than 100 after so long. Even though I wouldn't think you would give more than 100 damage points to something if you were going for balance, but that's just me.