Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Testlund on September 12, 2014, 11:40:43 AM

Title: Defence against enemy ties
Post by: Testlund on September 12, 2014, 11:40:43 AM
Is there a way for a bot to sense when a tie has been attached to it?
Title: Re: Defence against enemy ties
Post by: Testlund on September 12, 2014, 11:46:23 AM
This works if the bot sees another bot that can shoot ties.

cond
 *.eyef 0 >
 *.reftie 0 >
start
 2000 .mkslime store
stop

It's just that keeping the slime up is very nrg consuming. So I was thinking it would be more economical if the bot doesn't create slime until a tie has been fired.
Title: Re: Defence against enemy ties
Post by: MacadamiaNuts on September 12, 2014, 12:16:53 PM
*.tiepres .deltie store

or

cond
*.numties 0 >
start
(do something)
stop
Title: Re: Defence against enemy ties
Post by: Testlund on September 12, 2014, 03:36:25 PM
Thanks!  :)