I remove behaviours from a specified agent or set of agents. I remove each scheduled behaviour that has the same name as any of those added to the "Behaviours to remove" list below.

Begin micro-behaviour

REMOVE-BEHAVIOURS-FROM

Begin NetLogo code:
substitute-text-area-for target self                                                        
remove-behaviours-from 
    target
    list-of-micro-behaviours "Behaviours to Remove" []
End NetLogo code

Variants

You can add micro-behaviours to the list of micro-behaviours to remove. You can change the agent whose behaviours will be removed.

Related Micro-behaviours

ADD-BEHAVIOURS -- Adds behaviours

ADD-BEHAVIOURS-TO -- Adds behaviours immediately to a specified agent or set of agents

REMOVE-BEHAVIOURS -- Removes behaviours

REMOVE-BEHAVIOURS-FROM -- Removes specified behaviours from an agent or set of agents

REMOVE-ALL-BEHAVIOURS -- Remove all behaviours

REMOVE-ALL-BEHAVIOURS-FROM -- Removes all behaviours from an agent or set of agents

DO-WITH-PROBABILITY -- Adds behaviours probabilistically

DO-WITH-PROBABILITIES  -- Choose which set of behaviours to add probabilistically

REPEATEDLY-DO-BEHAVIOURS -- Adds behaviours repeatedly

DO-AFTER -- Delays the addition of a list of micro-behaviours

DO-AFTER-SETUP -- Delays the addition of a list of micro-behaviours until setup has completed

WHEN -- Adds and removes micro-behaviours the first time that conditions are true

WHENEVER -- Adds and removes micro-behaviours every time conditions are true

ADD-BEHAVIOURS-TO-LINKS -- Adds micro-behaviours to links (rather than agents)

History

This was first implemented by Ken Kahn on 4 February 2010.