Bots and Simulations > Bot Tavern
HAVING A PROBLEM WITH A SIMPLE BOT.
spike43884:
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: ---'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
--- End code ---
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.
Shadowgod2:
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
spike43884:
--- Quote from: 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
--- End quote ---
Ahh ok, whats the shflav about? I didn't think it resetted over a cycle?
Shadowgod2:
.shflav is the type of shot, shot at you.
body -6
regular -1
venom -3
nrg -2
ect.
spike43884:
--- Quote from: 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.
--- End quote ---
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
Navigation
[0] Message Index
[#] Next page
Go to full version