# Ecosystem Simulation Script -- Potential Demo Data Script 7 # This script tests grendel/herbivore interactions. # ########################################################## Non-trivial convergence # A nice sequence of collisions: create bush Bush1 10 5 5 create browser Browser1 25 2 8 create grendel Grendel1 50 4 4 tick 2 create grendel Grendel2 50 3 4 # On the final tick here: # Browser1 will ignore Bush1 since it doesn't have enough energy. # Grendel1 will eat Browser1 # Grendel2 will eat Grendel1 tick 4 status Bush1 status Browser1 status Grendel1 status Grendel2 ########################################################## Expire before eating # create grendel Grendel3 3 10 10 create browser Browser2 25 11 10 tick 1 status Browser2 status Grendel3 ########################################################## Almost expire before eating # create grendel Grendel4 4 15 15 create browser Browser3 25 16 15 tick 1 status Browser3 status Grendel4 ########################################################## Shut down # shut down exit ########################################################## End of script