Chocobo
White-Flower
- Reaction score
- 409
Question 2 : A unit starts the effect of an ability, is the good event. But that's pretty imposible to do in that way, unless you get rid of the Stun Time of Sleep. Or you can calculate the total distance between the caster and the target divided by the hammer's speed, and add a lotta milliseconds (100 is pretty enough)
Last Question : This is quite difficult. For that, you will need Handle Vars, because you will need damn timers (0.04 is enough smooth). You can also use triggers (in GUI), but it will be quite weird and never will be MUI. But you said, "2" units, not one..
Loop Question :
- (Integer A)' start = bj_forLoopAIndex
- (Integer A)' end point = bj_forLoopAIndexEnd
- (Integer B)' start = bj_forLoopBIndex
- (Integer B)' start = bj_forLoopBIndexEnd
A loop, is simply what it means : it does a loop of each action in the order you wrote it, until it gets at the end, it adds 1 to the integer reference, and if the integer reference is equal to the end point, the loop ends (exitwhen bj_forLoopAIndex == bj_forLoopAIndexEnd // or with (Integer B) bj_forLoopBIndex == bj_forLoopBIndex).
The difference between (Integer A) and (Integer B)? Their bjs.
What are the numbers? The first number in the point of starting loop, and second is the point of ending loop. Example, you put :
This will loop 10 times the actions inside the Loop - Actions, from 1 to 10, using (Integer A). Like you do : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
You can also refer to (Integer A) via "For Loop Integer A" (If I remember the name), under Integer Comparaison.
Or another example :
This loops 546689-36+1 times, meaning 546654 times, from 36 to 546689.
36, 37, 38, 39, 40, 41, 42, 43............ ...........546687, 546688, 546689.
Using this time (Integer B).
You can also merge (Integer A) and (Integer B) to make 2 loops at same time :
The first loops 10 times with (Integer A), and on each of (Integer A)' loop, because (Integer B) is inside the loop, it will loop 8-6+1 times, meaning 3 times. So, you have for (Integer B) : (10-1+1)*(8-6+1) = 10*3 = 30 loops (10 for (Integer A), and 30 for (Integer B)).
Tell me if you understand this clearly, because you will need it sometimes if you want to avoid if then else in 10000 millions of it.
Last Question : This is quite difficult. For that, you will need Handle Vars, because you will need damn timers (0.04 is enough smooth). You can also use triggers (in GUI), but it will be quite weird and never will be MUI. But you said, "2" units, not one..
Loop Question :
- (Integer A)' start = bj_forLoopAIndex
- (Integer A)' end point = bj_forLoopAIndexEnd
- (Integer B)' start = bj_forLoopBIndex
- (Integer B)' start = bj_forLoopBIndexEnd
A loop, is simply what it means : it does a loop of each action in the order you wrote it, until it gets at the end, it adds 1 to the integer reference, and if the integer reference is equal to the end point, the loop ends (exitwhen bj_forLoopAIndex == bj_forLoopAIndexEnd // or with (Integer B) bj_forLoopBIndex == bj_forLoopBIndex).
The difference between (Integer A) and (Integer B)? Their bjs.
What are the numbers? The first number in the point of starting loop, and second is the point of ending loop. Example, you put :
Code:
For Each (Integer A) from 1 to 10, do Actions
Loop - Actions
This will loop 10 times the actions inside the Loop - Actions, from 1 to 10, using (Integer A). Like you do : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
You can also refer to (Integer A) via "For Loop Integer A" (If I remember the name), under Integer Comparaison.
Or another example :
Code:
For Each (Integer B) from 36 to 546689, do Actions
Loop - Actions
This loops 546689-36+1 times, meaning 546654 times, from 36 to 546689.
36, 37, 38, 39, 40, 41, 42, 43............ ...........546687, 546688, 546689.
Using this time (Integer B).
You can also merge (Integer A) and (Integer B) to make 2 loops at same time :
Code:
For Each (Integer A) from 1 to 10, do Actions
Loop - Actions
For Each (Integer B) from 6 to 8, do Actions
Loop - Actions
The first loops 10 times with (Integer A), and on each of (Integer A)' loop, because (Integer B) is inside the loop, it will loop 8-6+1 times, meaning 3 times. So, you have for (Integer B) : (10-1+1)*(8-6+1) = 10*3 = 30 loops (10 for (Integer A), and 30 for (Integer B)).
Tell me if you understand this clearly, because you will need it sometimes if you want to avoid if then else in 10000 millions of it.