# Ecosystem Simulation Script -- Potential Demo Data Script 5 # This script tests grendels munching herbivores. # ########################################################## Create some prey # create grazer Grazer1 20 1 9 create grazer Grazer2 20 3 5 ########################################################## Add a predator # create grendel Grendel1 50 2 4 ########################################################## Turn 'em loose # tick 1 status Grazer1 status Grazer2 # Grendel1 munches Grazer2 on next tick: tick 1 status Grazer1 status Grazer2 status Grendel1 # Run 'em a bit: tick 5 status Grazer1 status Grendel1 # Grendel1 munches Grazer1 on next tick: tick 1 status Grazer1 status Grendel1 ########################################################## Set up more prey # tick 3 create browser Browser1 25 4 6 create browser Browser2 25 4 7 create browser Browser3 25 5 7 # Grendel1 munches Browser1 on next tick (never had a chance): tick 1 status Browser1 status Grendel1 # Browser2 has a close call on next tick (got there first): tick 1 status Browser2 status Browser3 status Grendel1 # Grendel1 munches Browser3 on next tick: tick 1 status Browser3 status Grendel1 # Grendel1 finally munches Browser2 on next tick then wanders around a bit: tick 5 status Browser2 status Grendel1 ########################################################## Shut down # shut down exit ########################################################## End of script