can u help me to return the value of phéromone to 0 .with  this instruction 
the quantity of phéromone never change to 0
 to LayPheromone if (pheromone < maxPheroPerSite-Forage) [set pheromone 
(pheromone + amtPheroLay-Forage)] end to UpdatePatches ;ask patch nestX 
nestY [ set pcolor pink ] ask patches [ if (pheromone < 0) [set pheromone 
0] if (pheromone > 0) [ set pheromone (pheromone - pheromone * 
evaporation-rate) ifelse showPhero? [ set pcolor scale-color yellow 
pheromone 0 (maxPheroPerSite-Forage)] ;;;;;;;Scale color of pheromone ants 
laid between 0 and maxPheroPerSite-Return, ;;;;;;;when ants return to nest, 
they don't lay pheromone in a visited site ;;;;;;;if pheromone > = 
maxPheroPerSite-Return [ set pcolor black ] ] ] end

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to