| 07-08-2003, 01:04 AM | #1 |
Is there any way to change the max hp on units? So, if I wanted to add 500 to the max and then take away 300 some other time or something to that nature. Is that possible? |
| 07-08-2003, 01:11 AM | #2 |
There are triggers to change the players handicap, but it affects all units. I'll look right now to see if there is a trigger for individual unit HP. |
| 07-08-2003, 01:24 AM | #3 |
I didn't find any trigger solutions but I have an idea that may work but it's a slim chance... Perhaps giving a unit the ability Item Life Bonus can increase their HP, but I doubt it. Guess it's worth a try. On second thought, if the unit in question is a hero, just give it health tomes to change it's health up, and if you want it to go down, just give it health tomes with a modified ability which gives negative health instead. |
| 07-08-2003, 02:50 AM | #4 |
the cheat way is to transfer to nuetral extra and then set the handicap of that unit up then transfer it back to you then reset the handicap on nuetral extra. You'll get your buffed up unit its a bit ofa work around (Bwood suggested it) |
| 07-08-2003, 03:18 AM | #5 | |
Quote:
That's a brilliant idea! I sure hope it works ;) |
| 07-08-2003, 05:08 AM | #6 |
hmm...thanks. I'll give it a try in a sec. |
| 07-14-2003, 07:49 AM | #7 |
Well, I was curious to know if anyone had another idea for this? This will work, but then I'd have to check the unit each time since it sets a percentage, if I wanted to add 800 hp to two units that have different hp amounts, I'd have to write a longer trigger, which I'm trying to avoid at this time. :) TIA. |
| 07-14-2003, 04:44 PM | #8 |
*bump* Just in case. :) |
| 07-18-2003, 07:27 AM | #9 |
You think Blizzard would have made these triggers. Alright, the health part works great. But the handicap doesn't effect the mana. Which is good, and bad. Anyway to change the max mana? |
| 07-18-2003, 08:04 AM | #10 |
to add a constant value to a max hp all you need to do is figure out what % of the unit's current max hp that number is. for instance, to add 333hp to a unit you would do set handicap of neutral extra to ((1 + 333/units_max_hp)*100)% so if the unit originally had 1000 hp, it would go throught the formula: (1 + 333/1000)100 and would get 133.3 and set the handicap to 133% 133% of 1000 is 1330, no exact but 3 hp isn't going to kill you, if you can have decimals in percents thats even better. |
| 07-18-2003, 08:14 AM | #11 |
as for mana, pshh i dunno.... you could make custom spellcaster upgrades... |
| 07-18-2003, 08:39 AM | #12 |
Yeah, now mana is a problem. The hp thing I've got working atm, and actually, I do need exact. 1 hp can make a difference on this map. I may just have to modify it a bit and wait and see if either a mana form comes out or what. I really need a better way to handle hp though if anyone has a better idea. Mainly because I can never be certain what the units hp will be to get the correct bonus or minus. It's possible that a unit starts with 300 hp, goes to 700hp, then needs to drop 200 hp. and since this can happen to up to 10 units at a time, it's a lot of possiblities. Anyways...maybe blizzard will be smart and add this! |
| 07-18-2003, 09:37 AM | #13 |
umm... i dunno if it is impersice, test it out... i was just speculating above. if it's a real value that you use for precentages than everything should be fine. to check this wither play the map or click the precentage on the handicap trigger. If it sais "integer" it won't work, if it sais "real" then it will. |
| 07-18-2003, 09:47 PM | #14 |
The health tomes work better, so I've gone that route. However, I can't make a -amount health tome. I've also look for a mana tome, only to learn that it doesn't exist and that there is an ability that raises max mana, but it's a hold item, not a permanent affect. Any way that I can change that? |
