| 03-23-2005, 12:43 AM | #1 |
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 |
you can make an ability (base off say claws of attack) and add that. |
| 03-23-2005, 03:31 AM | #3 | |
Quote:
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 |
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 |
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 | |
Quote:
|
| 03-23-2005, 05:50 PM | #7 | |
Quote:
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 |
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 | |
Quote:
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 | |
Quote:
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. |
