| 03-29-2007, 08:25 PM | #1 |
Is there a simple way to change a unit's armor value? I've tried using dummy units and an ability that decreases armor by levels, but those don't seem to work properly half the time. Is there an easier way? In WEU theres an advanced trigger to do it, but I cant use WEU. |
| 03-29-2007, 08:39 PM | #2 |
Abilities of -1, -2, -4, -8, -16, -32, etc. then add them for any combination. Bear in mind above level 1 of it doesn't work. |
| 03-29-2007, 09:04 PM | #3 |
I don't think I quite understood that. |
| 03-29-2007, 09:05 PM | #4 |
Learn some basic triggering. Or get the bonus armour thingie, should be around here somewhere. |
| 03-29-2007, 09:11 PM | #5 |
I know JASS. But you explained that funny. N wats the bonus armor 'thingie'? |
| 03-29-2007, 09:15 PM | #6 |
Make a bunch of different Item Armor abilities that add varying amounts of armor. Each ability should add 2^n. So 1,2,4,8,16,32,64,etc, going up as high as you need. Now, you can add any armor value you need using a combination of those armor abilities. If you need 13, you can add 8+4+1, if you need 27 you can add 16+8+2+1. That's what griffen was saying. |
| 03-29-2007, 09:22 PM | #7 |
1337D00D if you don't understand so go and download Vexorian's InvX 2.0 (or less version) and look through it's code ! there must some "system" made by waaddar thats what are you looking for... |
| 03-29-2007, 10:15 PM | #8 |
Just use a dummy ability with armor increases going from the lowest you will need (in the negatives) to the highest you will need. Then, use a trigger to add your dummy ability and set it to the correct level. |
| 03-29-2007, 10:39 PM | #9 | |
Quote:
the only true way is to use abils with pow of 2 values and sum it... |
| 03-29-2007, 10:58 PM | #10 |
I think there are ways of making it work, but either way you need n levels for a total bonus of n. With bonusmod, you need log2n abilities, which is better space and loading time - wise |
| 03-30-2007, 03:39 AM | #11 |
...I still dont get why you dont just change the level of the ability every .2 seconds to match a variable, and change the variable. If you mean that these abilties will need to support heros gaining levels, abilities allow that to change, since this is 'adding' armor (2 +2), not 'setting' armor (4) |
| 03-30-2007, 06:23 AM | #12 | ||
Quote:
Quote:
For many item abilities, including armour bonuses, anything above level 1 will not work. |
