Welcome To Darwinbots > Newbie

Stupid question

<< < (2/2)

Elite:
Which version are you using HazD?

Here's the corrected version. I've added an antibirthtie gene at the beginning, coding to make the venom work, corrected conspec recognition, and some prey-tracking routines, and some minor stuff

Your conspec routine for enemies should be *.refeye *.myeye != rather than *.refeye *.myeye =

' HazD's Bot

def venomcounter 51

' Birthtie begone!

cond
*.robage 2 <
start
.tie *.robage -1 mult 1 add mult inc
.deltie inc
stop

cond
*.robage 0 =
start
.shoot .ploc store
.mkshell .vloc store
-32000 .venval store
stop

cond
*.eye5 0 >
*.eye5 50 <
*.myeye *.refeye !=
start
*.refveldx .dx store
*.refvelup 50 add .up store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
start
-6 .shoot store
*.refveldx .dx store
*.refvelup .up store
stop

' Got shell? Use venom to remove it

cond
*.eye5 30 >
*.refshell 0 >
*.refeye *.myeye !=
start
.venomcounter inc
stop

cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop

cond
*.venomcounter 19 >
start
50 .shootval store
-3 .shoot store
0 .venomcounter store
stop

cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop

cond
*.poison 500 <
start
50 .strpoison store
stop

cond
*.venom 500 <
start
50 .strvenom store
stop

cond
*.nrg 4000 >
start
40 .repro store
stop

end

HazD:
I am using version 2.41.0 and thanks for correcting my first bot type thing.  

Navigation

[0] Message Index

[*] Previous page

Go to full version