# Option opponent-team-scored The opponent team just scored a goal ## State Machine ## State initial
If that state is active,
> | The basic behavior stand is executed.
The decision tree:
Pseudo code of the decision tree:
if ( | random < 0.25 | ) | // chance of 1/4
{
transition-to-state(jaul1);
}
else if ( | random < 0.333 | ) | // chance of 1/3
{
transition-to-state(jaul2);
}
else if ( | random < 0.5 | ) | // chance of 1/2
{
transition-to-state(jaul3);
}
else
{
transition-to-state(jaul4);
}
## State jaul1
If that state is active,
> | The basic behavior special-action is executed. Parameters:
| special-action-id | = | special-action.cheer-sad1 ;
The decision tree:
Pseudo code of the decision tree:
if ( | time-of-state-execution > 5000 | ) | // after 5 seconds
{
transition-to-state(finished);
}
else
{
transition-to-state(jaul1);
}
## State jaul2
If that state is active,
> | The basic behavior special-action is executed. Parameters:
| special-action-id | = | special-action.cheer-sad2 ;
The decision tree:
Pseudo code of the decision tree:
if ( | time-of-state-execution > 5000 | ) | // after 5 seconds
{
transition-to-state(finished);
}
else
{
transition-to-state(jaul2);
}
## State jaul3
If that state is active,
> | The basic behavior special-action is executed. Parameters:
| special-action-id | = | special-action.cheer-sad3 ;
The decision tree:
Pseudo code of the decision tree:
if ( | time-of-state-execution > 5000 | ) | // after 5 seconds
{
transition-to-state(finished);
}
else
{
transition-to-state(jaul3);
}
## State jaul4
If that state is active,
> | The basic behavior special-action is executed. Parameters:
| special-action-id | = | special-action.cheer-sad4 ;
The decision tree:
Pseudo code of the decision tree:
if ( | time-of-state-execution > 5000 | ) | // after 5 seconds
{
transition-to-state(finished);
}
else
{
transition-to-state(jaul4);
}
## State finished
This state is a target state.
If that state is active,
> | The basic behavior stand is executed.
The decision tree:
Pseudo code of the decision tree:
transition-to-state(finished);