HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Action expanation please...

08-07-2002, 04:19 PM#1
Guest
COuld someone please explain what this 'action' trigger is used for:

For Each Interger A(B), Do Action
08-07-2002, 05:03 PM#2
Guest
what other uses could it be for.. i'm not quite understanding it..:confused:

does anyone know of a good trigger explantion site, or something?
08-07-2002, 05:17 PM#3
Guest
so whatever number i put for the range that is how many times it will repeat?....

i just curious to how it works..

i am also trying to get a instant heal to work, while a unit is in a region.. without having to exit and reenter the region
08-07-2002, 05:28 PM#4
Guest
Ok here's an example of something you can do. Let's say you have a unit array (called Units) that has stored 8 different units on your map. Now let's say you want to hide them all.

For each integer A from 1 to 8 do Unit - Hide Units[A]

that simple line will hide them all because it does the action for each number from 1 to 8.
08-07-2002, 05:33 PM#5
Guest
so it only works for groups?.. i'm sorry i not understanding ..
08-07-2002, 05:42 PM#6
Guest
It basically just takes an integer and increments it from a starting number of your choice to an ending number of your choice. So any use you can think of with an integer it can be used in.

You see instead of me saying
Hide Units[1]
Hide Units[2]
Hide Units[3]
Hide Units[4]
Hide Units[5]
Hide Units[6]
Hide Units[7]
Hide Units[8]

I can say
For each integer A from 1 to 8 Hide Units[A]