I want to ask if I want to ask female to hatch after X number of ticks. the female and male mated in March or April and give birth in January or February.
at the begining I made the code that they mate and have children in january and february
the code
to-report parents-here?
report any? turtles-here with [gender = "male"]
and
any? turtles-here with [gender = "female"]
end
to go
if ticks mod 12 <= 2 [
ask patches with [parents-here?] [
ask one-of turtles-here with [gender = "female"] [
hatch 1 [
set gender one-of ["male" "female"]
]
]
]
tick
end
but how can I ask them if parents here now so after exact number of ticks this female can hatch (pregnancy time) the problem that when I make gestaton 0 then + 1 they still count even after hatching.
Thanks in advance for the help and sorry for my bad English