| 05-04-2006, 05:48 AM | #1 |
How can I set armor in-game? |
| 05-04-2006, 05:53 AM | #2 |
What do you mean? Is it an item or a model or what? Please explain more. |
| 05-04-2006, 05:54 AM | #3 |
well there's a function on WEU that lets you both raise and reduce armor. I use it for my stat based avatar spell. Trigger: Actions
![]() Advanced - for (triggering unit) increase defense by 1other than using WEU. i dont know of any ways but using upgrades. which would only work if you're not going to use it very often. this is the converted version of that line JASS:function Trig_armor_set_Actions takes nothing returns nothing call ChangeDefense( GetTriggerUnit(), true, 1 ) endfunction //=========================================================================== function InitTrig_armor_set takes nothing returns nothing set gg_trg_armor_set = CreateTrigger( ) call TriggerAddAction( gg_trg_armor_set, function Trig_armor_set_Actions ) endfunction |
| 05-04-2006, 06:00 AM | #4 |
@kaldoreielf - I'm talking about a unit's armor. @Mystic Prophet - I'll no longer use WEU except for the huge map sizes(i.e. 480x480 maps) |
| 05-04-2006, 06:20 AM | #5 |
Well all the other options I can think of all have downsides to them. using positive and negative armor upgrades (would need a lot of levels) swapping out an undroppable item in inventory (unit would need inventory ability and would take up a slot) or if you didnt give attack speed for agility you could simply set that with triggers. so this is pretty much out of my league for any hands free armor changing. |
| 05-04-2006, 06:30 AM | #6 |
I renamed agility, strength, and intellect to display certain info about their character. |
| 05-04-2006, 06:37 AM | #7 |
Why dont you use the armor ability (i think), it is an item ability. This ability dont show any icon, it is stacable and you can use negative value to decrease armor if you want (sorry for not giving a better help i'm far from the editor). |
| 05-04-2006, 06:50 AM | #8 |
well, armor can get as high as like 5000 maybe 6000 even so having an armor ability with 6000 levels so i can increase and decrease armor at will is not gonna work plus that will have it look like: 0 +125 |
| 05-04-2006, 07:01 AM | #9 |
you can have few abilities +1 +5 +10 +20 +50 +100 +500 and mathmaticly set the ability for what you need (i learnd that from the bonus mod made by waadar) |
| 05-04-2006, 07:02 AM | #10 |
what bonus mod? |
| 05-04-2006, 07:14 AM | #11 |
Your only option is using the Item Armor bonus. That's what the bonus mod uses. It's a mod that lets you change a unit's stats. Check in the resources section. |
| 05-04-2006, 07:14 AM | #12 |
search for threads mad by waadar regarding his spell book or any other downloadeble stuff. I am working on a mac now (under system 9) so i cant see many atuchments sorry. |
| 05-04-2006, 07:19 AM | #13 |
the tread on his bonus mod i found has the attachment removed completly |
| 05-04-2006, 10:21 AM | #14 |
WEU uses BonusMod for changing armor, and using abilities of +1, +20, +50 etc. like harel suggested would not really work, you need the power of two. http://www.wc3jass.com/viewtopic.php?t=202 |
| 05-04-2006, 12:27 PM | #15 |
Well, i made a system for you Linera to add damage without the +(extra damage). You could use it the for armor too the way this does. Its just that at the moment i cant put negative integers into the editor, so i cant decrease damage, but when you find this, the functions are all ready made. Heres the thread: http://wc3campaigns.net/showthread.php?t=82823 and heres the post: http://wc3campaigns.net/showpost.php...7&postcount=12 |
