When 1 type of unit (a zergling, for example) enters a region it gains 1 mineral per second. When a marine moves into the same area, it would not get the minerals.
Sorry, its probably really simple but I really suck with editor rn :)
Every second pick each Zergling unit in the region and add 1 mineral to the owner of picked unit player. A more efficient approach might be to track entry, exit and death however for now simply picking the units should be sufficient.
Mineral Income
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
unit = No Unit <Unit>
Conditions
Actions
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Variable - Set unit = (Picked unit)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Unit type of unit) == Zergling
Then
Player - Modify player (Owner of unit) Minerals: Add 1
Else
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount and do (Actions)
...
I cannot find "Entire Map"... and I have looked xd
Edit: Nevermind, I was using Units in unit group instead of units in region. Thanks SO much for your help :D
(I didnt know what to name the title >.>)
I am trying to create a trigger that does this:
When 1 type of unit (a zergling, for example) enters a region it gains 1 mineral per second. When a marine moves into the same area, it would not get the minerals.
Sorry, its probably really simple but I really suck with editor rn :)
Every second pick each Zergling unit in the region and add 1 mineral to the owner of picked unit player. A more efficient approach might be to track entry, exit and death however for now simply picking the units should be sufficient.
uhh right... Could you say that again in newbier terms for me? D;
Something like...
The part im having trouble with is
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount and do (Actions)
...
I cannot find "Entire Map"... and I have looked xd
Edit: Nevermind, I was using Units in unit group instead of units in region. Thanks SO much for your help :D