- Joined
- Dec 19, 2007
- Messages
- 1,234
Hellow friends ^.^ I would like to give a different value to any unit on the map.
I used this but it gives the same value to all units:
The current trigger above give all units value 12.
"units on the map" has 1000 slots [1000]
I used this but it gives the same value to all units:
-
gives value
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set unitgroupsystem = (Units in (Playable map area))
-


Unit Group - Pick every unit in unitgroupsystem and do (Actions)
-



Loop - Actions
-




For each (Integer A) from 1 to (Number of units in unitgroupsystem), do (Actions)
-





Loop - Actions
-






Unit - Set the custom value of (Picked unit) to (Integer A)
-
-
-
-
-


Custom script: call DestroyGroup (udg_unitgroupsystem)
-


Trigger - Remove (This trigger) from the trigger queue
-
-
The current trigger above give all units value 12.
"units on the map" has 1000 slots [1000]