Author Topic: Not shooting?  (Read 3304 times)

Offline kage

  • Bot Neophyte
  • *
  • Posts: 49
    • View Profile
Not shooting?
« on: November 29, 2006, 07:11:09 PM »
For some reason this bot I am working on doesn't fire. Everything else seems to work fine for it though  

Code: [Select]
cond
*.robage 0 =
start
7 989 store
stop

cond
*.vtimer 0 =
start
*.thisgene 1 add .mkvirus store
stop

cond
7 *989 !=
start
50 .repro store
stop

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

cond
*.eye5 50 >
*.refeye *.myeye !=
start
16 .shootval store
-1.shoot store
*.refvelup .up store
stop

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

cond
*.tiepres 0 !=
start
99 .repro store
stop

cond
*.tiepres 0 >
start
.tieval .tieloc store
1000 .tieval store
stop

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Not shooting?
« Reply #1 on: November 29, 2006, 07:51:39 PM »
It seems to fire in the simulation I put it in.  Maybe it was a phantom problem

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Not shooting?
« Reply #2 on: November 29, 2006, 07:55:28 PM »
You are missing a space between -1 and .shoot.
Many beers....

Offline kage

  • Bot Neophyte
  • *
  • Posts: 49
    • View Profile
Not shooting?
« Reply #3 on: November 29, 2006, 08:25:16 PM »
Quote from: EricL
You are missing a space between -1 and .shoot.


Thanks, it fires now.