- Joined
- May 26, 2014
- Messages
- 41
Hello, in my map a critical error appears in few situations. The map is very popular on RoC, so this is a lot of trouble for our community. If anyone would be able to help, that would be great. I'm gonna describe the first type of critical in this thread not to confuse anyone.
This one happens when a player leaves the game (not certain one, just 1 of 12).It happens randomly without any clear reason. I figured that could be cos of the triggers, so i'm gonna post the triggers that may cause it.
This one happens when a player leaves the game (not certain one, just 1 of 12).It happens randomly without any clear reason. I figured that could be cos of the triggers, so i'm gonna post the triggers that may cause it.
-
defeat on leave
- Events
- Conditions
-
Actions
- Set defeat[(Player number of (Triggering player))] = False
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
- Set bool = True
-
For each (Integer B) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Integer A) Equal to (Integer B)
- defeat[(Integer B)] Equal to False
-
And - All (Conditions) are true
-
Conditions
- ((Player((Integer A))) is an ally of (Player((Integer B)))) Equal to True
- ((Player((Integer B))) is an ally of (Player((Integer A)))) Equal to True
-
Conditions
-
Conditions
-
Or - Any (Conditions) are true
- Then - Actions
-
Else - Actions
- Set bool = False
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- bool Equal to True
-
Then - Actions
- Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
defeat lose spawns
- Events
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching unit)) Equal to (Triggering player))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Point-value of (Unit-type of (Picked unit))) Equal to 1
- ((Picked unit) is A structure) Equal to True
- ((Picked unit) is alive) Equal to True
-
Then - Actions
- Set tempReal = (Life of (Picked unit))
- Set tempUnitType = (Unit-type of (Picked unit))
- Set tempPoint = (Position of (Picked unit))
- Unit - Remove (Picked unit) from the game
- Unit - Create 1 tempUnitType for (Triggering player) at tempPoint facing Default building facing degrees
- Unit - Set life of (Last created unit) to tempReal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching unit)) Equal to (Triggering player))) and do (Actions)