- Joined
- Jan 8, 2011
- Messages
- 70
Hey everyone, i am having an issue with my gold income system and would like some help to fix it. This is the trigger i use to generate income:
Also, a secondary question about my income!
How would i display the gold gained through the building as text above (e.g. +10) (that floats up and dissapears after a certain amount of time) like in Troll vs Elves.
Cheers, +REP to everyone that helps.
-
Gold building 1
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
- Set Temp_Group = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Gold Base) and (((Owner of (Matching unit)) Equal to (Player((Integer A)))) and (((Matching unit) is alive) Equal to True))))
- Player - Add ((Number of units in Temp_Group) x 10) to (Player((Integer A))) Current gold
- Custom script: call DestroyGroup(udg_Temp_Group)
-
Loop - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Events
-
Gold building 2
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
- Set Temp_Group = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Gold Base #2) and (((Owner of (Matching unit)) Equal to (Player((Integer A)))) and (((Matching unit) is alive) Equal to True))))
- Player - Add ((Number of units in Temp_Group) x 15) to (Player((Integer A))) Current gold
- Custom script: call DestroyGroup(udg_Temp_Group)
-
Loop - Actions
-
For each (Integer A) from 1 to 3, do (Actions)
-
Events
Also, a secondary question about my income!
How would i display the gold gained through the building as text above (e.g. +10) (that floats up and dissapears after a certain amount of time) like in Troll vs Elves.
Cheers, +REP to everyone that helps.