- Joined
- Nov 19, 2010
- Messages
- 54
Hello,
I'm currently creating a trigger when a marine is trained the income will increase + 10 minerals and after x sec the player will receive his income
But when i'm training a marine now i still don't get the + 10 minerals income for each marine i train at the income round every 10 seconds maybe i'm missing something here or did i do a mistake in this trigger?
PS i have a variable named incomevar and i checked array and size 6 because i have 6 players.
I hope some one can help me with this one!
I'm currently creating a trigger when a marine is trained the income will increase + 10 minerals and after x sec the player will receive his income
-
Test
-
Events
- Unit - Any Unit training progress is Completed
-
Local Variables
- IncomeVar = 0 <Integer[6]>
-
Conditions
- (Unit type of (Triggering unit)) == Marine
-
Actions
- Variable - Modify IncomeVar[(Triggering player)]: + 10
-
Events
-
Test 2
-
Events
- Timer - Every 10.0 seconds of Real Time
-
Local Variables
- IncomeVar = 0 <Integer[6]>
- Conditions
-
Actions
-
Player Group - Pick each player in (All players) and do (Actions)
-
Actions
- Player - Modify player (Picked player) Minerals: Add IncomeVar[(Picked player)]
-
Actions
-
Player Group - Pick each player in (All players) and do (Actions)
-
Events
But when i'm training a marine now i still don't get the + 10 minerals income for each marine i train at the income round every 10 seconds maybe i'm missing something here or did i do a mistake in this trigger?
PS i have a variable named incomevar and i checked array and size 6 because i have 6 players.
I hope some one can help me with this one!