How do I get to specify the breed name for <breed>-here when this is passed as a parameter to another function? I get a syntax error currently:
to fwd-reaction [ #asking-species species2 #x-k_on #x-alpha #species-to-die #new-breed ]
ask #asking-species [
if (any? other species2-here ) and random-float 1000 < (#x-k_on * 2 * #x-alpha)
[
ask one-of other #species-to-die -here
[ die ]
set breed #new-breed
set-attributes2 0 2 self true false red
]
]
end
EDIT:
Thank you, grow3 worked superbly.
Question 2:
There is a slight complication with turtles with a special attribute, how do I pass that within the args? For example:
ask monomers1 with [ aggregated = false ]
instead of just
ask monomers1
as the first arg?
Question 3:
Also, how do I pass an argument of a breed that has to be hatched?
like so
hatch-<breed> 1
but the breed passed as an argument as #hatching-species
hatch-#hatching-species 1