Darwinbots Forum

Bots and Simulations => Bestiary => Veggies => Topic started by: 2122 on April 10, 2005, 09:28:05 PM

Title: Poison Ivy (V)(PY)-11.04.05
Post by: 2122 on April 10, 2005, 09:28:05 PM
'Poison Ivy
'
'A plant that fights back.
'Poison and slime prevent
'others from feeding on it.
'It will reach out and grab
'a bot as it passes, then
'suck it dry of waste and
'energy.



'rotate away from conspecifics
cond
*.eye5 < 50
*.refeye *.myeye =
start
328 .aimdx store
stop

'grab prey
cond
*.eye5 40 <
*.refeye *.myeye !=
*.numties 1 <
start
1 .tie store
stop

'take energy and waste
cond
*.multi 1 =
start
99 .sharewaste store
99 .sharenrg store
stop

'reproduce
cond
*.nrg 4500 >
start
50 .repro store
stop

'make slime
cond
*.nrg 4500 >
*.slime 60 <
start
20 .mkslime store
stop

'make poison
cond
*.nrg 4500 >
*.poison 100 <
start
20 .strpoison store
7 .ploc store
stop

end