Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: kage on November 29, 2006, 07:11:09 PM

Title: Not shooting?
Post by: kage 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
Title: Not shooting?
Post by: Numsgil 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
Title: Not shooting?
Post by: EricL on November 29, 2006, 07:55:28 PM
You are missing a space between -1 and .shoot.
Title: Not shooting?
Post by: kage on November 29, 2006, 08:25:16 PM
Quote from: EricL
You are missing a space between -1 and .shoot.


Thanks, it fires now.