Welcome to the Hive Workshop,
Danielt0. If you want to introduce yourself to the Community, you may do so
here. If not, you should at least read the important
Site Rules, to make sure you won't run in trouble.
They purchase creeps, and it gives gold to the player, right? If that is so, I know an easy way:
Since they don't use mana, set their mana or custom value
(In the Unit Editor) equal to the points of income you want the player to get. Create an Integer Variable
(let's call it IntegerArray), check "Array" and set it to number of players in-game.
[TRIGGER=Then, use this trigger]
IncomeRaising
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Selling unit)) Equal to Unit Shop
Actions
Set IntegerVariable[(Player number of (Owner of (Sold unit)))] = (IntegerVariable[(Player number of (Owner of (Sold unit)))] + (Integer((Mana of (Sold unit)))))
[/TRIGGER]
Then you only need to have another trigger adding gold to the player equal to
IntegerArray.
You can do this plenty of other ways; this is just an example. Remember that to get the mana of the unit, you have to use
Conversion - Convert Real to Integer.
PS. - System-programming threads go on the
Spells and Systems forum. Although it might be better in the
Triggers (GUI) forum, I'll leave it here for now.