Hello, and thanks for any help in advance.
I'm trying to get a trigger system up for tossing out attributes based on custom class types.
I plan for my map to have upwards of 60+ hero's that level to 100+ and using the basic Veterancy option its tedious.
My Issue is either my use of the functions is incorrect or my logic setup.
I can current get the Function to hand out stats with the Unit - Add (buffs) Trigger every time the unit levels. However their is a catch 22. It can't tell the difference between gaining 1 level and gaining 50 levels. So in other words if I gave a level 1 unit 1mill exp and it leveled instantly 50 times. The (unit gain level function) only counts 1 level and ignores levels 2-49.
So my Logic was to Create a few variables to counter this.
Last level:
Current level:
Changeinlevels:
If, Current level - Last level = Changeinlevel
Then I can Multiply my Buff function by (Change in level) Giving me the number I want.
Instead it seems to only multiply it by my (Last Level) not my (change in Level)
I have hit a logic failing and my knowledge of Sc2 editor is limited. I was thinking the script runs top to bottom with the variables only being used at the start. Any help would be great.
Hello, and thanks for any help in advance.
I'm trying to get a trigger system up for tossing out attributes based on custom class types.
I plan for my map to have upwards of 60+ hero's that level to 100+ and using the basic Veterancy option its tedious.
My Issue is either my use of the functions is incorrect or my logic setup.
I can current get the Function to hand out stats with the Unit - Add (buffs) Trigger every time the unit levels. However their is a catch 22. It can't tell the difference between gaining 1 level and gaining 50 levels. So in other words if I gave a level 1 unit 1mill exp and it leveled instantly 50 times. The (unit gain level function) only counts 1 level and ignores levels 2-49.
So my Logic was to Create a few variables to counter this.
Last level:
Current level:
Changeinlevels:
If, Current level - Last level = Changeinlevel
Then I can Multiply my Buff function by (Change in level) Giving me the number I want.
Instead it seems to only multiply it by my (Last Level) not my (change in Level)
I have hit a logic failing and my knowledge of Sc2 editor is limited. I was thinking the script runs top to bottom with the variables only being used at the start. Any help would be great.
@Reves: Go Fixed! I made it copy the Vet function. Make the Function remove and re-apply based on unit level.