~GaLs~
† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
- Reaction score
- 180
Introduction
This tutorial will helps newbies and also expert <needed?> to know how loop works with.
Tools Needed Before Starting
A function-able World Editor
LOOP
Loop can be found in any unit picking or looping...
First
I will talk about
What do this do ? @@?
This is a normal integer loop for GUI user.
What does it do ?
yeah...it does alot things...but it also cant do most of the things..
This action is the BEST for mapper that need to make tons of same action but change the integer slightly..
Now, For each integer A
Which means the integer will be keep replacing its integer.
*Note that Integer A is being like an integer variable*
from 1 to 10
This will be the number for IntegerA is being replace.
And it also stat out that this loop runs 10 times.
when the 1st time runs, integerA equal to 1
When 7th time runs, integerA equal to 7...Understand?
*Remember NOT to put the 2nd number bigger than the 1st number..it will cause the action to malfunction*
This is not required:
Second
Now...We move to UnitGroup action...
This is easier when u know what ForEachIntegerA do...
As we seen, the action pick every unit in PlayableMapArea...And loop action
Actually this is similar to the last thing we learn..(Integer Loop)
The only different thing is:
-We dont know how many time will it loops
I use back the Action i posted for example:
If the playable map area contains 10 units, The action will pick all 10 units...
And what the Loop-Actions do?
Well, It runs all the action below it 10 times continuosly...The time for the loop run is equal to the unit picked...
Here i will give another examples:
This action, it will loop through all the units in playable map area (Means run <The number of picked unit> times).
If there are 10 units in it, and the 8th unit is Triggering unit...The Loop will runs for 10 time but when the 8th time it run, it show up the word ''Help!!''...
Clear
Here's a example map for everyone to understand loop more clearly:
View attachment 9988
__________________________________________
This is my first tutorial...Please forgive me if there are any mistake...Thanks !!
Be Happy~
This tutorial will helps newbies and also expert <needed?> to know how loop works with.
Tools Needed Before Starting
A function-able World Editor
LOOP
Loop can be found in any unit picking or looping...
First
I will talk about
Code:
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
What do this do ? @@?
This is a normal integer loop for GUI user.
What does it do ?
yeah...it does alot things...but it also cant do most of the things..
This action is the BEST for mapper that need to make tons of same action but change the integer slightly..
Now, For each integer A
Which means the integer will be keep replacing its integer.
*Note that Integer A is being like an integer variable*
from 1 to 10
This will be the number for IntegerA is being replace.
And it also stat out that this loop runs 10 times.
when the 1st time runs, integerA equal to 1
When 7th time runs, integerA equal to 7...Understand?
*Remember NOT to put the 2nd number bigger than the 1st number..it will cause the action to malfunction*
This is not required:
Code:
For each (Integer A) from 10 to 1, do (Actions)
Loop - Actions
Second
Code:
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Now...We move to UnitGroup action...
This is easier when u know what ForEachIntegerA do...
As we seen, the action pick every unit in PlayableMapArea...And loop action
Actually this is similar to the last thing we learn..(Integer Loop)
The only different thing is:
-We dont know how many time will it loops
I use back the Action i posted for example:
Code:
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
And what the Loop-Actions do?
Well, It runs all the action below it 10 times continuosly...The time for the loop run is equal to the unit picked...
Here i will give another examples:
Code:
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to (Triggering unit)
Then - Actions
Game - Display to (All players) the text: Help !!
Else - Actions
This action, it will loop through all the units in playable map area (Means run <The number of picked unit> times).
If there are 10 units in it, and the 8th unit is Triggering unit...The Loop will runs for 10 time but when the 8th time it run, it show up the word ''Help!!''...
Clear
Here's a example map for everyone to understand loop more clearly:
View attachment 9988
__________________________________________
This is my first tutorial...Please forgive me if there are any mistake...Thanks !!
Be Happy~