Im working on a map that uses "money units" (units that are used to buy other units) and i need to know how to make a trigger so that when a player has a certain number of units enter a region it gives him the unit and kills the amount of units needed to buy that unit but leaves any extra units alone(for instance, if i send 5 units into a region that only requires 3 to give the unit, it kills ONLY 3 units, gives the unit bought and leaves any extra "money units" alone.) This is sometimes used in Cannon defence type maps. Can anyone help me? Thanks.
Im working on a map that uses "money units" (units that are used to buy other units) and i need to know how to make a trigger so that when a player has a certain number of units enter a region it gives him the unit and kills the amount of units needed to buy that unit but leaves any extra units alone(for instance, if i send 5 units into a region that only requires 3 to give the unit, it kills ONLY 3 units, gives the unit bought and leaves any extra "money units" alone.) This is sometimes used in Cannon defence type maps. Can anyone help me? Thanks.
This could do your job, but I haven't tested it...
Maybe you have to change the Group Condition Any Player to (Owner of (Triggering Unit))
Edit: Forgot Unit spawn, sry ;)
Cheers
Then
@Thenarden: Go thanks alot your code worked flawlessly (Can't say the same thing about mine though). Now i can finish my map. :)