Ok, so I really am raging because this SHOULDN'T be happening, but, it is.
Trying to find the problem, here. IT DOESN"T WORK RIGHT. It works fine for the first 2levels, then goes hay wire. For i=2 it sets it to lvl 4 and skips level 3. For i=3, it sets Tube 3 and 8 to level 5 and tube5 to level 6. For i=0 and 1 it works FINE, sets to level 1 and 2.... NO PROBLEMS.....
Event-
Unit - Any Unit uses Blue Falcon - Blue Falcon - NoobTubeLearn (learn) at Generic6 - Complete stage (Ignore shared abilities)
Action --
Variable - Set i = (Current level for ability Blue Falcon - NoobTubeDummy on (Triggering unit))
General - Repeat (Actions) 4 times
General - Wait 5.0 Game Time seconds
Variable - Modify i: + 1
UI - Display (Text(i)) for (All players) to Subtitle area
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(3) to i
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(5) to i
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(8) to i
I thought maybe there is something wrong with the trigger, so I set it to show the variable,
0
1
2
3
The variable is FINE. So how is the trigger calling 2 different numbers when i=3?
It must be the data editor? ITS ALL THE SAME 0123
And, to top it off...
I set the numbers manually to test if the numbers are causing the problem.
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(3) to 2
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(5) to 3
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(8) to 4
IT SETS IT TO THE EXACT LEVEL, BUT, WHEN CALLING AN INTEGER FROM A VARIABLE IT CALLS 2 NUMBERS FOR TUBE 3/8 and 5.....................................................................
I wish I had found this post earlier. Had to learn the same stuff the hard way as well. Wanted to post it to prevent other mappers experience the same problem, where none shouldn't be and found this post.
Summary for future viewers of this post:
WARINING!
"Unit - set level for Unit ability Ability to X" does NOT set it to X, instead it ADDS X to current ability level. What a waste of precious time to find it out, blaming variables for the mistake.
have you found a solution? i am experiencing the same problem.. set level of unit ability doesn't do crap. You can see that it adds the level but it doesnt actually set the level so even though it might say the ability is on level 2.. It really still is only on level 1.
any solutions?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ok, so I really am raging because this SHOULDN'T be happening, but, it is.
Trying to find the problem, here. IT DOESN"T WORK RIGHT. It works fine for the first 2levels, then goes hay wire. For i=2 it sets it to lvl 4 and skips level 3. For i=3, it sets Tube 3 and 8 to level 5 and tube5 to level 6. For i=0 and 1 it works FINE, sets to level 1 and 2.... NO PROBLEMS.....
Event
---Unit - Any Unit uses Blue Falcon - Blue Falcon - NoobTubeLearn (learn) at Generic6 - Complete stage (Ignore shared abilities)
Action
Variable - Set i = (Current level for ability Blue Falcon - NoobTubeDummy on (Triggering unit))
General - Repeat (Actions) 4 times
General - Wait 5.0 Game Time seconds
Variable - Modify i: + 1
UI - Display (Text(i)) for (All players) to Subtitle area
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(3) to i
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(5) to i
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(8) to i
I thought maybe there is something wrong with the trigger, so I set it to show the variable,
0
1
2
3
The variable is FINE. So how is the trigger calling 2 different numbers when i=3?
It must be the data editor? ITS ALL THE SAME 0123
And, to top it off...
I set the numbers manually to test if the numbers are causing the problem.
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(3) to 2
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(5) to 3
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(8) to 4
IT SETS IT TO THE EXACT LEVEL, BUT, WHEN CALLING AN INTEGER FROM A VARIABLE IT CALLS 2 NUMBERS FOR TUBE 3/8 and 5.....................................................................
Gosh darn....
Set ability level doesn't set ANYTHING it adds to ability level.
Unit - Set level for (Triggering unit) ability Blue Falcon - Noob Tube(3) to 2
Means its adding 2 levels to that ability not setting the level to 2
Can you at least add negative amounts?
€ lazy me, could just try that by myself xD
Yes, you can use negative numbers to subtract the ability level.
I wish I had found this post earlier. Had to learn the same stuff the hard way as well. Wanted to post it to prevent other mappers experience the same problem, where none shouldn't be and found this post.
Summary for future viewers of this post:
WARINING!
"Unit - set level for Unit ability Ability to X" does NOT set it to X, instead it ADDS X to current ability level. What a waste of precious time to find it out, blaming variables for the mistake.
@Shianky: Go
have you found a solution? i am experiencing the same problem.. set level of unit ability doesn't do crap. You can see that it adds the level but it doesnt actually set the level so even though it might say the ability is on level 2.. It really still is only on level 1.
any solutions?