Darwinbots Forum

Bots and Simulations => Bot Tavern => Topic started by: spike43884 on April 18, 2015, 08:14:20 AM

Title: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: spike43884 on April 18, 2015, 08:14:20 AM
I've made one of the simplest bots I've ever made (it can actually function with just one gene) and it doesn't even need a conspec recognition because the chance it could become a cannibot is impossible without mutations.
Code: [Select]
'Sentry - Simplest bot ever :D


'Gene 1 Blind Retaliation
cond
*.shdn 0 !=
*.shup 0 != or
*.shdx 0 != or
*.shsx 0 != or
start
*.shang 0 add .aimshoot store
-6 .shoot store
stop


'Gene 2 Reproduction
cond
*.nrg 30000 >
start
50 .repro store
stop


'Gene 3 I was born!
cond
*.robage 0 =
start
180 .aimdx store
stop


'Gene 4 Moving out
cond
*.robage 1 =
start
10 .up store
stop


'Gene 5 Almost moved out
cond
*.robage 3 =
start
10 .up store
stop

Im having a small problem with the first gene, I can't seem to get the angle right in the shot. I want it to return the body shots to whatever shot it...exactly the same angle if possible. Thanks.
Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: Shadowgod2 on April 18, 2015, 08:56:45 AM
cond
*.shflav 0 !=
*.shflav -2 !=
start
*.shang .aimshoot store
-6 .shoot store
stop

here the wiki needs changing. the descriptions of the shang and aimshoot are off
Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: spike43884 on April 19, 2015, 06:09:28 AM
cond
*.shflav 0 !=
*.shflav -2 !=
start
*.shang .aimshoot store
-6 .shoot store
stop

here the wiki needs changing. the descriptions of the shang and aimshoot are off

Ahh ok,  whats the shflav about? I didn't think it resetted over a cycle?
Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: Shadowgod2 on April 19, 2015, 06:15:08 PM
.shflav is the type of shot, shot at you.

body -6
regular -1
venom -3
nrg -2
ect.

Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: spike43884 on April 20, 2015, 11:29:43 AM
.shflav is the type of shot, shot at you.

body -6
regular -1
venom -3
nrg -2
ect.

Oh shadowgod. You don't know a way to set a freevariable to 1 or 0 when robage 0 =
Would 1 rnd do it or do I have to do 1 rnd 1 sub
Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: Shadowgod2 on April 20, 2015, 02:37:39 PM
just 1 rnd would do
Title: Re: HAVING A PROBLEM WITH A SIMPLE BOT.
Post by: spike43884 on April 22, 2015, 11:12:12 AM
just 1 rnd would do
Ahh ok. 1 rnd then.
Yes its because Im going to try and work on the whole 'sentry'  concept and have little hunters for it.