Aye-up,
I wondered if anyone could help ?
I am trying to write a little programme in which turtles leave a trail to direct
other turtles to what ever they have found. The problem is that the turtles seem
to drop all their chemical at once. Being new to Netlogo I assume it is simple
and i am doing something quite daft, but as i have been starring at this for
too long now hope some one may advise. Thanks for any help. tim.
The (problem) bit of script is below;
to go-turtles
ask turtles [
ifelse space > 0
[set found-space? true]
[set found-space? false]
ifelse found-space?
[lay-trail]
[if (chemical > 0.5)
[uphill-chemical]
]
wiggle
]
end
to lay-trail
if found-space? [
set drop-size 50
rt 180
]
drop-chemical
end
.