BehaviourComposer: ignore everything before this.
Interact with anyone who meets the specified conditions.
Interact with another
Begin NetLogo code:
substitute-text-area-for set-of-agents other all-individuals substitute-text-area-for other-agent one-of target-agents let target-agents set-of-agents if any? target-agents [add-behaviours-to other-agent list-of-micro-behaviours "Other's Additional Behaviours"  add-behaviours-to self list-of-micro-behaviours "My Additional Behaviours" ]End NetLogo code
You can add conditions using with
This generates a set of agents that meet some conditions. If the set is not empty then one agent is chosen from the set at random. Micro-behaviours are added to the chosen other and myself.
Interact with another was implemented by Ken Kahn on 13 June 2011.
BehaviourComposer: ignore everything after this.