how to make a turtle on netlogo die or leave after foraging a certain amount of patches?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how to make a turtle on netlogo die or leave after foraging a certain amount of patches?

hpopoff
We can't seem to get the turtles to die/leave in a gallfly and bird setting after foraging 3 galls (colour goes from red to black).
 
 How can you code this so that they die or leave after only foraging so many patches? Our hint from out TA was that we need the bird to be able to know when it has foraged 3