So I'm making a capture the flag custom game, and I'm wondering how I would make a trigger.
The units are probes, and the flag is vespene. So players have to travel to the enemy base with their probe, collect vespene from a gas geyser, and bring it back to their base. First player to do so, wins.
So how would I create the trigger, that if a probe moves into a certain area while the probe is holding vespene, that player wins?
I appreciate any help that can be given :) thanks.
When Probe gathers the vespen it gets the behavior Resource Vespen, so if you make trigger that would periodicly checks or leave enter region Event, pick every Probe units in the region and check if they have Resource Vespen behavior on them.
If your map dont have vespen gatherable then make trigger that checks if Player Property Event vespen changes.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I'm making a capture the flag custom game, and I'm wondering how I would make a trigger. The units are probes, and the flag is vespene. So players have to travel to the enemy base with their probe, collect vespene from a gas geyser, and bring it back to their base. First player to do so, wins. So how would I create the trigger, that if a probe moves into a certain area while the probe is holding vespene, that player wins? I appreciate any help that can be given :) thanks.
When Probe gathers the vespen it gets the behavior Resource Vespen, so if you make trigger that would periodicly checks or leave enter region Event, pick every Probe units in the region and check if they have Resource Vespen behavior on them.
If your map dont have vespen gatherable then make trigger that checks if Player Property Event vespen changes.