- Joined
- Jun 16, 2008
- Messages
- 333
I am making a map with an income system and I got some triggers out for testing but it is not working for me....
This is the one that give you your income
and this is the one when you click the unit:
What is wrong with it? The default income is 25 and it stays at 25...
This is the one that give you your income
-
Income
-
Events
- Time - Every 20.00 seconds of game time
- Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Player - Add Income[(Player number of (Picked player))] to (Picked player) Current gold
- Game - Display to (All players) the text: (String(Income[(Player number of (Picked player))]))
-
Loop - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Events
and this is the one when you click the unit:
-
Units
-
Events
- Unit - A unit Finishes construction
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Arrow Tower 1
-
Then - Actions
- Set Income[(Player number of (Owner of (Triggering unit)))] = (Income[(Player number of (Owner of (Triggering unit)))] + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
What is wrong with it? The default income is 25 and it stays at 25...
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Set Income[(Player number of (Picked player))] = 25
-
Loop - Actions