Like most things in life, it’s complicated. if any? mammoths-here [ let r random 100 if r < 3 [ die ] ; mammoths have a 3% chance of killing the human if r < 3 + odds-of-killing [ ask one-of mammoths-here [ die ] ; successfully hunt a mammoth! set mammoths-killed-by-humans mammoths-killed-by-humans + 1 ]
This part is like wolf-sheep predation. The next part is unrelated. ask mammoths [ ; mammoths have a 5% chance of dying if they're over 30 if age > 30 * 12 and random-float 100 < 5 [ die ] ; they also get another 5% chance of dying if their density is too high if density > 0.50 and random-float 100 < 5 [ die ] ; if they are on a patch affected by climate change, they get a 5% chance of dying if [ pcolor ] of patch-here = green + 3 and random-float 100 < 5 [ set mammoths-killed-by-climate-change mammoths-killed-by-climate-change + 1 die ] ; finally, all mammoths have a 0.33% chance of dying. if random-float 100 < 0.33 [ die ] Sent from my iPhone > On Nov 3, 2021, at 1:17 AM, jieun kim <jkmi...@gmail.com> wrote: > > Hello! > > I just wanted to ask what are the parameters for the 'cause of mammoth > deaths'? Are they the number of mammoths that have died from climate change > and human influence, or some other unit? > > Thank you! > -- > 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 netlogo-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/netlogo-devel/802900d2-8361-4fe1-97eb-83bcf69c26ddn%40googlegroups.com. -- 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 netlogo-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/D81BBD6D-E39C-405E-932E-40722D634EC6%40gmail.com.