BehaviourComposer: ignore everything before this.
Begin description: Set an attribute, parameter, or Netlogo variable to a new value. End description
Begin NetLogo code:
substitute-text-area-for attribute-name my-attribute substitute-text-area-for attribute-value value-of-attribute set attribute-name attribute-value
End NetLogo code
The second text area can contain any value or an expression that will evaluate to a value. To repeatedly update an attribute use the 'Enhance' menu to make this repeat.
Examples using this behaviour include: Set my-heading to a random angle, Increase the age attribute on every tick, and Set the pen mode to 'down' so a trail is left as this agent moves. programming guide.
Set two attributes, parameters, or NetLogo variables to new values sets two attributes at once.
New value was implemented by Ken Kahn.
BehaviourComposer: ignore everything after this.