- Joined
- Jun 1, 2009
- Messages
- 125
Any chance to set a variable to index from Unit[index] array?
Custom value ofc is occupied by another functions
Custom value ofc is occupied by another functions
-
example
-
Events
-
Unit - A unit enters A00 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to Spawn_Hero_Unit[1]
-
-
Then - Actions
-
Set VariableSet Chosen_Int = (Chosen_Int + 1)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to Spawn_Hero_Unit[2]
-
-
Then - Actions
-
Set VariableSet Chosen_Int = (Chosen_Int + 2)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to Spawn_Hero_Unit[3]
-
-
Then - Actions
-
Set VariableSet Chosen_Int = (Chosen_Int + 3)
-
-
Else - Actions
-
-
-