Talk:Brain Gallery/@comment-75.159.14.114-20140429212209/@comment-24475768-20140430134002

The first 5 brains are examples of what you want. But the most important thing in those brains is the line:

WHEN [once] DO [team] [equals] [team 1]

The Enemy Brain is an example of a brain you want in your enemies. Again, the most important part is the line:

WHEN [once] DO [team] [equals] [team 2]

and the use of the "enemies" tile. "enemies" is gathering the objects whose team number is different than your team number (so in the example of the Enemy Brain, it doesn't count the other objects in team 2 or the objects that don't have a team/are in the team "neutral").

Note that a team is not an object set, but you can get the object set of all object in a team with the tile "objects" in team settings (after the tile of the team). The allies/enemies/neutrals, which are not teams since they depend on which team your object (or the object variable that you placed before the tile) is in, are object sets. There's a small object set on the icon if it's an object set, and none if it's a team, so that you don't confuse them.

You can change what the relationship between teams is, by choosing more specifically which team is ally/neutral/enemy with which team.

Make sure not to confuse "neutral" which is the team (in which most objects are), and "neutrals" which is the object set of all objects neutral to only your prop (or the object variable that you placed before the tile).