Staredit Network

Staredit Network -> UMS Assistance -> Disable a trigger and start another?
Report, edit, etc...Posted by hata711 on 2005-01-12 at 05:47:48
How do i disable a trigger and start another?
For example, I have 2 computers in my map...

Both computers have 3 gateways, and create 12 zealots every 15 seconds.
If any side that lose 1 gateway, the other side will grant one more zealot.

More detail.
A side B side
3 gateway 3 gateway
12 zealots 12 zealots

A side B side
2 gateway 3 gateway
12 zealots 13 zealots

A side B side
1 gateway 3 gateway
12 zealots 14 zealots

A side B side
0 gateway 3 gateway
12 zealots 20 zealots

Like this...

Thanks smile.gif
Report, edit, etc...Posted by sckor on 2005-01-12 at 05:58:09
It's all to do with conditions. Conveniently you can tribute some switches to it.
By the way, you can't really order the comp to build zealots and so they are built with triggers right?
Or you can put an extra death condition to each of those triggers. like suffers 1 death of gateway, create 13 zealots or something. good luck wink.gif
Report, edit, etc...Posted by terrenblade on 2005-01-12 at 08:29:45
the condition your looking for is "player commands exactly X gateways" the exactly bit is the important one, Conversly if one of the players is going to have gateways which are unused in determining the zellots spawning, you'd need to use "brings" instead of "commands"
Report, edit, etc...Posted by MillenniumArmy on 2005-01-12 at 09:46:46
Trigger:

Condition:
Current player commands exactly 3 gateways
Other computer commands exactly 3 gateways
Action:
Create 12 zealots
Wait for 15 seconds
Preserve Trigger

Condition:
Current player commands exactly 3 gateways
Other computer commands exactly 2 gateways
Action:
Create 13 zealots
Wait for 15 seconds
Preserve Trigger

Condition:
Current player commands exactly 3 gateways
Other computer commands exactly 1 gateways
Action:
Create 14 zealots
Wait for 15 seconds
Preserve Trigger

Condition:
Current player commands exactly 3 gateways
Other computer commands exactly 0 gateways
Action:
Create 20 zealots
Wait for 15 seconds
Preserve Trigger


Now i dunno how you would want spawns to work when lets say Player A has 2 gateways and Player has 2 or less gateways as well.
Next Page (1)