Hello. Im trying to spawn units after specific custom upgrade periodically. for example, spawn 3 zealots after a player upgrades "zealot upgrade(custom made)" every 50 secs. I figured out how to spawn zealots every 50 secs, but I cant figure out how to make them spawn after the upgrade.
And then in your trigger that spawns the zealots, check if zealots_enabled[player number] is true.
thanks for reply but i have an issue that i dont know how to make that "condition" I dont know how to where is ([your upgrade] count for player 1, counting Complete) this part in condition. can u help me?
Hi. I really cant find upgrade count for player.
1. I clicked new condition
2. clicked comparison
3. clicked triggering unit to change
4. then i go function
5. I searched upgrade count for player but I couldnt find...
Hello. Im trying to spawn units after specific custom upgrade periodically. for example, spawn 3 zealots after a player upgrades "zealot upgrade(custom made)" every 50 secs. I figured out how to spawn zealots every 50 secs, but I cant figure out how to make them spawn after the upgrade.
plz help me.
@kogits35: Go
Or whatever. But the main thing you need to take from this is the condition.
Alternatively, you can have a boolean array global variable that is set to true for each player when they research your upgrade:
And then in your trigger that spawns the zealots, check if zealots_enabled[player number] is true.
You can skip having to use a switch by using a Repeat Forever loop with the actions Create Zealot and Wait 50 seconds
@alexobviously: Go
thanks for reply but i have an issue that i dont know how to make that "condition" I dont know how to where is ([your upgrade] count for player 1, counting Complete) this part in condition. can u help me?
@kogits35: Go
Ah okay. It's a comparison called "Upgrade Count For Player". If you type "upgrade" in the search box you'll see it pretty quickly.
@alexobviously: Go
Hi. I really cant find upgrade count for player. 1. I clicked new condition 2. clicked comparison 3. clicked triggering unit to change 4. then i go function 5. I searched upgrade count for player but I couldnt find...
@kogits35: Go
Click the bracket ( to the left of triggering unit. It should be the first thing in the expression.