HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A simple way to change a unit's armor value?

03-29-2007, 08:25 PM#1
1337D00D
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
Captain Griffen
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
1337D00D
I don't think I quite understood that.
03-29-2007, 09:05 PM#4
Captain Griffen
Learn some basic triggering. Or get the bonus armour thingie, should be around here somewhere.
03-29-2007, 09:11 PM#5
1337D00D
I know JASS. But you explained that funny.

N wats the bonus armor 'thingie'?
03-29-2007, 09:15 PM#6
TaintedReality
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
Toadcop
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
Dil999
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
Toadcop
Quote:
Then, use a trigger to add your dummy ability and set it to the correct level.
how i know it will not work... because this abils don't support level change ! if i wrong so correct me someone please...
the only true way is to use abils with pow of 2 values and sum it...
03-29-2007, 10:58 PM#10
Vexorian
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
Dil999
...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
Captain Griffen
Quote:
Originally Posted by Dil999
...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)

Quote:
Bear in mind above level 1 of it doesn't work.

For many item abilities, including armour bonuses, anything above level 1 will not work.