reset-ticks
sets the tick counter back to zero. It is only used in models that use tick-based updates. reset-ticks
is usually found at the end of a setup procedure.
Things to keep in mind when using reset-ticks
:
tick
means, refer to the tick
item in this same dictionary.tick
primitive without resetting the ticks first with the reset-ticks
primitive, NetLogo will show an error.disable until ticks start
option when a button is created.In the model example below, we have a bike and 5 houses. Our bicycle goes between the houses during the day (between the ticks 10 to 15) and delivers newspapers. At night, it goes back to the center. Every time the tick counter hits 24, we reset the ticks.
Once you mastered the reset-ticks
primitive, don't stop there. Check out the resources below to improve your NetLogo skills.
reset-ticks
primitive: