Author Topic: HAVING A PROBLEM WITH A SIMPLE BOT.  (Read 5437 times)

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
HAVING A PROBLEM WITH A SIMPLE BOT.
« 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.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #1 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

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #2 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?
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #3 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.


Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #4 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
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #5 on: April 20, 2015, 02:37:39 PM »
just 1 rnd would do

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: HAVING A PROBLEM WITH A SIMPLE BOT.
« Reply #6 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.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.