| 07-19-2009, 02:43 PM | #1 |
Hi guys, I am trying to make a AttackMod lib which will change the attack of a unit. I have a problem, I can't make Item Bonus Damage give -1 attack bonus but I know it is possible. My stupid WE just blocks it... how do I do it? |
| 07-19-2009, 03:00 PM | #2 |
did you use shift? by the way, check out UnitProperties by Litany. no need to reinvent the wheel here, especially in this case, you'll see why. |
| 07-19-2009, 03:09 PM | #3 | |
Quote:
Although it will only be able to give +/- 498 attack bonus it will be very easy to implement and it won't need 1000 ability to do that, just 1. |
| 07-19-2009, 03:38 PM | #4 |
Ticked allow negatives in preferences? |
| 07-19-2009, 04:00 PM | #5 | |
Quote:
|
| 07-19-2009, 04:16 PM | #6 |
| 07-19-2009, 04:36 PM | #7 |
Hold shift and double click the indicated field, then insert a negative number? |
| 07-19-2009, 06:29 PM | #8 |
Ahhh ... I knew I was messing something up ... God bless you for destroying my moments of stupidity with straight answers xD I am going to bookmark this page =P |
| 07-19-2009, 07:56 PM | #9 | |
Quote:
great this problem was also solved. I don't really know what else to say, I really don't know... |
| 07-19-2009, 08:01 PM | #10 | ||
Quote:
Quote:
|
| 07-20-2009, 02:49 AM | #11 | |
Quote:
I'm working with map of some guy, and UP causes name clashes with tons of globals/locals; this is because Life, Mana, MaxLife, MaxMana is quite common variable names depending on the coder's style, making UP not a viable option for this map. Also it is ridiculous to make sure calling something like CreateUnitProperties if all you need to do is just simple max state modifications; that's why I wrote MaxState (name is subject to changes). |
| 07-20-2009, 07:15 AM | #12 | |
Quote:
|
