the thing that was causing the error was that the trigger was ever actually off, a turned off trigger can still be run, and because it had actions to run its self it caused it to re run forever, also i put the turn off trigger thing in the front so it stops it before it can run 1 last time
i also tested it this time to make sure it works xD
also most of it is the same i still repasted it so you can see it
--------------
this trigger
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
A = 0 <Integer>
Position of building = No Point <Point[4]>
Random int = 0 <Integer>
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt1 == true
alreadybuilt2 == true
alreadybuilt3 == true
alreadybuilt4 == true
Then
Trigger - Turn (Current trigger) Off
Trigger - Stop all instances of (Current trigger)
General - Skip remaining actions
Else
Variable - Set Random int = (Random integer between 1 and 4)
General - Switch (Actions) depending on Random int
Cases
General - If (1)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt1 == false
Then
Variable - Set alreadybuilt1 = true
Unit - Create 1 Supply Depot for player 0 at (Center of Region 005) using default facing (Ignore Placement)
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (2)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt2 == false
Then
Unit - Create 1 Supply Depot for player 0 at (Center of Region 006) using default facing (Ignore Placement)
Variable - Set alreadybuilt2 = true
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (3)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt3 == false
Then
Variable - Set alreadybuilt3 = true
Unit - Create 1 Supply Depot for player 0 at (Center of Region 007) using default facing (Ignore Placement)
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (4)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt4 == false
Then
Unit - Create 1 Supply Depot for player 0 at (Center of Region 008) using default facing (Ignore Placement)
Variable - Set alreadybuilt4 = true
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
Default
-----------------------------
So you're trying to make 1 building at a time instead of all 4 at the same time? It's actually easier then, you just don't need the "Pick Each Integer" loop. I also added a global Integer variable called NumBuildings.
I wish I could help someone in return but I know nothing clearly lol
do you still need help with this or did you get it to work?
oh and i just realized i messed something up in my example, which would explain the error xD my bad
yea bro I can't find the error lol
the thing that was causing the error was that the trigger was ever actually off, a turned off trigger can still be run, and because it had actions to run its self it caused it to re run forever, also i put the turn off trigger thing in the front so it stops it before it can run 1 last time
i also tested it this time to make sure it works xD
also most of it is the same i still repasted it so you can see it
--------------
this trigger
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
A = 0 <Integer>
Position of building = No Point <Point[4]>
Random int = 0 <Integer>
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt1 == true
alreadybuilt2 == true
alreadybuilt3 == true
alreadybuilt4 == true
Then
Trigger - Turn (Current trigger) Off
Trigger - Stop all instances of (Current trigger)
General - Skip remaining actions
Else
Variable - Set Random int = (Random integer between 1 and 4)
General - Switch (Actions) depending on Random int
Cases
General - If (1)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt1 == false
Then
Variable - Set alreadybuilt1 = true
Unit - Create 1 Supply Depot for player 0 at (Center of Region 005) using default facing (Ignore Placement)
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (2)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt2 == false
Then
Unit - Create 1 Supply Depot for player 0 at (Center of Region 006) using default facing (Ignore Placement)
Variable - Set alreadybuilt2 = true
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (3)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt3 == false
Then
Variable - Set alreadybuilt3 = true
Unit - Create 1 Supply Depot for player 0 at (Center of Region 007) using default facing (Ignore Placement)
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
General - If (4)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
alreadybuilt4 == false
Then
Unit - Create 1 Supply Depot for player 0 at (Center of Region 008) using default facing (Ignore Placement)
Variable - Set alreadybuilt4 = true
Else
Trigger - Run this trigger (Check Conditions, Don't Wait until it finishes)
Default
-----------------------------
success! and I also get that if the last part wasn't first, it would happen a 5th time before stopping ;D
@Idralol: Go
So you're trying to make 1 building at a time instead of all 4 at the same time? It's actually easier then, you just don't need the "Pick Each Integer" loop. I also added a global Integer variable called NumBuildings.