Conditional Rules for SSL There are 2 parts to every conditional in ESMS: an action to be taken and the condition or conditions that must be met for the action to be taken. The proper format for a conditional is the properly formatted action followed by 'IF' followed by the properly formatted condition or conditions. The 5 actions and their formats are: AGG X - This can be used once at the beginning of the match to set initial aggression (X) between 1 and 20. (AGG 5 will set your aggression modifier to 5 to start the match. AGG is the one action that does need an 'IF' or a condition as it can only take place at the beginning of the match.) CHANGEAGG X - This can be during the match to change aggression (X) between 1 and 20. (CHANGEAGG 12 will set your aggression modifier to 12 if certain conditions are met.) CHANGEPOS XX YY - This can be used to change a player (XX) to a different position (YY). (CHANGEPOS 10 AM will change player 10 to the AM position if certain conditions are met.) SUB XX YY ZZ - This will substitute one player (XX) into a given position (ZZ) for another player (YY). (The syntax can be slightly different if the SUB command is used with the INJURED condition as the XX can also be a particular position. See example.) SUB commands are ignored if you have already made 3 substitutions in a match. (SUB 8 14 MF will take player 8 out of the match and bring player 14 into the match as a MF if certain conditions are met. SUB DF 14 DF will replace the injured DF with player 14 if an INJURED condition is used afterwards.) TACTIC X - This will change to a new tactic (X). (TACTIC A will change your style into A if certain conditions are met.) There are 6 conditions. In the ones that require a mathematical sign, only the following are allowed: <= less than or equal to = equal to >= greater than or equal to The 6 conditions and their formats are: INJURED XX - This condition checks whether an injury has occurred to a particular player (XX) or a particular position (XX). (INJURED 8 will apply if player 8 is injured. INJURED MF will apply if any MF is injured.) MIN (sign) XX - This conditional checks how many minutes (XX) have passed in a match. (MIN >= 45 will apply once the minute counter is greater than or equal to 45. MIN = 72 will apply only in the 72nd minute of the match. MIN <= 60 will apply if the minute counter stays at or below 60.) RED XX - This condition checks whether a red card has been given to a particular player (XX) or a particular position (XX). (RED 8 will apply if player 8 receives a red card. RED MF will apply if any MF receives a red card.) SCORE (sign) X - This conditional checks the difference (X) between your score and your opponents'. X is the number of goals you are ahead (positive numbers) or behind (negative numbers) or drawn (0) with your opponent. (SCORE >= 2 will apply if you are 2 or more goals ahead of your opponent. SCORE = -1 will apply only if your opponent is one goal ahead of you. SCORE <= -2 will apply when your opponent is 2 or more goals ahead of you. SHOTS (sign) X - This conditional checks the difference (X) between your shots and your opponents'. X is the number of shots you are ahead (positive numbers) or behind (negative numbers) or drawn (0) with your opponent. (SHOTS >= 2 will apply if you have taken 2 or more shots than your opponent. SHOTS = -1 will apply only if your opponent has taken one more shot than you. SHOTS <= -3 will apply when your opponent has taken 3 or more shots than you.) YELLOW XX - This condition checks whether a yellow card has been given to a particular player (XX) or a particular position (XX). (YELLOW 8 will apply if player 8 receives a yellow card. YELLOW MF will apply if any MF receives a yellow card.) To write a complete conditional, you must write a single action, then a single 'IF' (except with AGG), then you may write as many conditionals in any order you wish. There must be a space between each separate modifier and everything written in a conditional must be in CAPITAL LETTERS. Conditionals must not conflict with each other. Additionally, if you put the same condition more than once in the same conditional (i.e. CHANGEPOS 8 AM IF MIN = 25 MIN = 65), only the last one will work - any previous ones will be ignored. Some properly formatted examples below for clarification: TACTIC P IF SCORE = 2 (This will change your team's tactic to P only if you are 2 goals ahead of your opponent.) SUB 8 14 MF IF MIN = 54 (This will take player 8 out of the match at minute 54 and have player 14 come on the pitch in as a MF – assuming your team hasn't already made 3 substitutes.) SUB 4 13 DF IF INJURED 4 (This will bring player 13 on the pitch to replace player number 4 if player 4 is injured - assuming your team hasn't already made 3 substitutes.) SUB DF 13 DF IF INJURED DF (This will bring player 13 on the pitch to replace the injured DF - assuming your team hasn't already made 3 substitutes. This is the exception referred to above using the SUB action with the INJURED condition.) CHANGEPOS 10 AM IF SCORE >= 2 MIN >= 72 (This will move player 10 to an AM position if the score is greater than or equal to 2 AND the minute counter is greater than or equal to 72. BOTH conditions must be fulfilled for this action to happen.) TACTIC D IF SCORE >= 2 MIN = 78 SHOTS >= 4 (This will change your team to tactic D at minute 78 if you have 2 or more goals AND 4 or more shots than your opponent. This check will only occur at minute 78.) TACTIC D IF SCORE >= 2 MIN >= 78 SHOTS >= 4 (This is similar to the one above. But, this will change your team to tactic D if the minute counter is greater than or equal to 78 AND you have 2 or more goals AND 4 or more shots than your opponent. ALL THREE conditions must be met for the action to proceed.) CHANGEAGG 8 IF YELLOW GK (This conditional would change your aggression to 8 if your goalkeeper received a yellow card.) The following are examples of improperly formatted conditionals: tactic p if score >= 2 (This would not work as it is not written in capital letters.) TACTIC P IF SCORE > 2 (This would not work as '>' is not a recognized sign.) TACTIC P IF SCORE >=2 (This would not work as there is no space between the '>=' and the '2'.) SUB 8 14 IF MIN = 48 (This would not work as no position has been specified.) SUB 8 14 DB IF MIN = 48 (This would not work as 'DB' is not a legal position.) SUB 14 8 DF IF MIN = 48 (This would not work as the player to be brought on is listed before the player to be taken off.) SUB 8 14 MF CHANGEPOS 10 AM IF MIN = 48 (This would not work as there are two actions specified before the 'IF'.) SUB 8 14 MF IF SCORE >= 2 IF MIN > 48 (This would not work as there is an 'IF' in front of each conditional. The following are examples of conditionals that could or will cause conflict. In SSL, conflicting conditionals which cause the engine to glitch are punishable with a fine. CHANGEPOS 10 AM IF MIN >= 45 CHANGEPOS 10 FW IF MIN >= 45 (A player obviously can't be in two places at once.) TACTIC P IF SCORE >= 2 TACTIC C IF SCORE >= 3 (At a score difference of 3 or better both conditions will be fulfilled and the team can't play 2 styles at once.) Special notes: You can make changes to your team based on certain actions which happen to your opponent, namely, cards and injuries. Both 'IF INJURED OXX' and 'IF RED OXX' work ONCE at the moment the action happens where 'O' is opponent and 'XX' is either a position or a player number. If you have other conditionals that also occur in that minute, you could end up with conflicting orders. Any conditionals (tactic, position, etc.) after that minute will take place even if they counter the 'OXX' conditionals. TACTIC A IF INJURED OGK would cause your team to switch to switch to an A tactic if your opponent's goalkeeper was injured. CHANGEPOS 8 AM IF RED OMF would cause player number 8 to switch to the AM position if one of your opponent's MF received a red card. Important to SSL: AGG can only be used once at the beginning of the match to set the initial aggression. The other 4 actions can be used 21 times each provided they are not consecutively executed all 21 times. If they are consecutively executed, they can only be used 20 times. If you attempt to submit a team sheet with a number of actions which exceed the maximum for that type, the engine actually starts to delete your valid conditionals. DO NOT exceed the number of allowed conditionals. For example, if you order a player to CHANGEPOS every minute from the 2nd minute to the 22nd minute and during this stretch of the match, no other conditionals are executed, the CHANGEPOS XX YY IF MIN = 22 will not work. If there is another conditional that is executed during this stretch (i.e., TACTIC P IF MIN = 17), the CHANGEPOS XX YY IF MIN = 22 will work but any subsequent CHANGEPOS conditionals will not work. Additionally, any CHANGEPOS conditionals after this point will cause the 20 or 21 valid conditionals in the example to start being deleted/ignored in reverse order. Seriously, DO NOT exceed the allowable number of conditionals.