I have four triggers to automatically build outposts in my map. All variables going in are supplied. Why don't these work?
Also, my WE has a graphical bug that's quite annoying. Checkboxes and radio buttons display as plain white or black boxes that don't change. I found that restarting my computer is a good remedy, but is there a permanent solution?
Code:
Control Shifted
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempplayer Equal to Player 10 (Light Blue)
Then - Actions
Set temppoint = (Center of Fortressspawn <gen>)
Unit - Create 1 Nerghuzian for Player 10 (Light Blue) at temppoint facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set tempunit = (Last created unit)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Dragon Pool at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Dragon Pool at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Nerghuzian Farm at temppoint2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempplayer Equal to Player 11 (Dark Green)
enemyunitupgradetrue Equal to False
Then - Actions
Set temppoint = (Center of AllianceSpawn <gen>)
Unit - Create 1 Peasant for Player 12 (Brown) at temppoint facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set tempunit = (Last created unit)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Guard Tower at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
If ((Random integer number between 1 and 2) Equal to 1) then do (Unit - Order tempunit to build a Cannon Tower at temppoint2) else do (Unit - Order tempunit to build a Arcane Tower at temppoint2)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Farm at temppoint2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempplayer Equal to Player 11 (Dark Green)
enemyunitupgradetrue Equal to True
Then - Actions
Set temppoint = (Center of AllianceSpawn <gen>)
Unit - Create 1 Wisp for Player 12 (Brown) at temppoint facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set tempunit = (Last created unit)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Moon Well at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Ancient Protector at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Moon Well at temppoint2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempplayer Equal to Player 12 (Brown)
enemyunitupgradetrue Equal to False
Then - Actions
Set temppoint = (Center of HordeSpawn <gen>)
Unit - Create 1 Acolyte for Player 12 (Brown) at temppoint facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set tempunit = (Last created unit)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Ziggurat at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Spirit Tower at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Spirit Tower at temppoint2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempplayer Equal to Player 12 (Brown)
enemyunitupgradetrue Equal to True
Then - Actions
Set temppoint = (Center of HordeSpawn <gen>)
Unit - Create 1 Peon for Player 12 (Brown) at temppoint facing Default building facing degrees
Unit - Make (Last created unit) Invulnerable
Set tempunit = (Last created unit)
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Orc Burrow at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Watch Tower at temppoint2
Trigger - Run Control Build Point Check <gen> (ignoring conditions)
Wait until (buildpointcheckdone Equal to True), checking every 0.50 seconds
Set buildpointcheckdone = False
Unit - Order tempunit to build a Watch Tower at temppoint2
Else - Actions
Code:
Control Build Point Check
Events
Conditions
Actions
Set temppoint2 = (Random point in tempreg)
Set tempreg = (Region centered at temppoint2 with size (60.00, 60.00))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Random destructible in tempreg) Not equal to No destructible
(Terrain pathing at temppoint2 of type Buildability is off) Equal to True
Then - Actions
Trigger - Run (This trigger) (ignoring conditions)
Else - Actions
Set buildpointcheckdone = True
Also, my WE has a graphical bug that's quite annoying. Checkboxes and radio buttons display as plain white or black boxes that don't change. I found that restarting my computer is a good remedy, but is there a permanent solution?