- Joined
- Feb 22, 2009
- Messages
- 158
Hello today this tutorial (THIS IS MINI-TUTORIAL!) will show you how to do basicly correct income (Without Leaks).
My own income sysyem (I use this in my maps):
Question 1: Is this income system gives gold for each player who have income building?
Answer: Yes.
Question 2: Why you subbmited this tutorial?
Answer: Becouse there are some newbies who must know that.
Question 3: How i could improve this income trigger?
Answer: Thats need to be maked by your own if you wanna better trigger.
Question 4: Is this trigger leaks?
Answer: This trigger isn't leaks.
My own income sysyem (I use this in my maps):
-
Non-Leaking Income
-

Events
-


Time - Every X seconds of the game time
-
-

Conditions
-

Actions
-


Set tempGroup = (Units of type X Building)
-


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



Loop - Actions
-




Set tempForce = (Player group((Owner of (Picked unit))))
-




Player Group - Pick every player in tempForce
-





Loop - Actions
-






Player - Add 1 to (Owner of (Picked unit)))) Current gold
-
-
-
-
-


Custom script: call DestroyGroup(udg_tempGroup)
-


Custom script: call DestroyForce(udg_tempForce)
-
-
Question 1: Is this income system gives gold for each player who have income building?
Answer: Yes.
Question 2: Why you subbmited this tutorial?
Answer: Becouse there are some newbies who must know that.
Question 3: How i could improve this income trigger?
Answer: Thats need to be maked by your own if you wanna better trigger.
Question 4: Is this trigger leaks?
Answer: This trigger isn't leaks.
Last edited:







