Don t know what this really means or what s causing this. My code is heavily modeled from the community model "Fire" The Error:
(Line 36) Expected a number here, rather than a list or block.
globals [
initial-plants
triggered-plants
]
breed [signals signal]
to setup
clear-all
set-default-shape turtles "square"
ask patches with [(random-float 100) < density]
[ set pcolor green ]
ask patches with [pxcor = min-pxcor]
[ transmit ]
set initial-plants count patches with [pcolor = green]
set triggered-plants 0
ask patches with [ pcolor = red ] [
; See if there is any possible neighbor patch
; to whom I can spread my lack of concentration
let target one-of neighbors4 with [ pcolor = green ]
; if the target exists, have them change their color
if target != nobody [
ask target [
set pcolor red
]
]
]
reset-ticks
end
to go
if not any? turtles
[ stop ]
ask signal
[ask neighbors4 with [pcolor = green]
[ transmit ] ]
tick
end
to transmit
start signal 1
[ set color blue ]
set pcolor black
set triggered-plants triggered-plants + 1
end