- Joined
- May 21, 2014
- Messages
- 580
Hello, Hive! I have searched the Internet for my issues and I have not gotten anything so far.
Upgrades in Warcraft 3 have "Increment" fields, where it adds the increment value to the base for each upgrade done.
I have thought doing the reverse of this: Setting the increment value to a negative number so it "decrements."
I have tested it: It doesn't decrement from the base value. It rather uses the value to subtract from the current upgrade.
Let us say I have a HP Bonus Base of 100, and HP Bonus increment at 10.
For every upgrade, the HP will increase as follows (for every upgrade): (Current HP)+100, (Current HP)+110, (Current HP)+120... [with Current HP using the previous upgrade].
Now, I have a HP Bonus Base of 100, and HP Bonus Increment at -10.
WHat it does is that the First Upgrade will give 100 HP Bonus, which is fine. The next upgrade will subtract 10 from the Current HP of the unit he already has, in which it is supposed to give a 90 HP bonus.
Is there a way to decrement a value using these fields only? (No triggers)
Upgrades in Warcraft 3 have "Increment" fields, where it adds the increment value to the base for each upgrade done.
I have thought doing the reverse of this: Setting the increment value to a negative number so it "decrements."
I have tested it: It doesn't decrement from the base value. It rather uses the value to subtract from the current upgrade.
Let us say I have a HP Bonus Base of 100, and HP Bonus increment at 10.
For every upgrade, the HP will increase as follows (for every upgrade): (Current HP)+100, (Current HP)+110, (Current HP)+120... [with Current HP using the previous upgrade].
Now, I have a HP Bonus Base of 100, and HP Bonus Increment at -10.
WHat it does is that the First Upgrade will give 100 HP Bonus, which is fine. The next upgrade will subtract 10 from the Current HP of the unit he already has, in which it is supposed to give a 90 HP bonus.
Is there a way to decrement a value using these fields only? (No triggers)
Last edited: