Author Topic: Energy Killer Virus  (Read 1568 times)

Offline Mutchy

  • Bot Neophyte
  • *
  • Posts: 35
    • View Profile
Energy Killer Virus
« on: September 02, 2006, 07:06:08 AM »
Im not sure how this will work, but this is a really old bot, almost 2 years old I belive, a mixture of old skool PY and my working.

The design is to kill off the enemy by making it repro so many times it runs out of energy. Its only a simple virus, but I want your opinions.

'Topic: Ideas  
'Mutchy original mod by PY
'*****Movement Genes!*****

cond
*.eye4 *.eye5 >
start
-20 .aimdx store
stop

cond
*.eye6 *.eye5 >
start
20 .aimdx store
stop

cond
*.eye5 0 >
*.refeye *.myeye =
start
200 .aimdx store
stop

cond
*.vel 30 <
start
2 .up store
stop

'*****feeding*****

'cond
'*.numties 1 =
'start
'20 .tienum store
'0 .fixang store
'100 .fixlen store
'0 50 store
'stop

cond
*.numties 0 =
start
0 66 store
stop

cond
*.eye5 30 >
*.eye5 77 !=
*.refeye *.myeye !=
start
1 .tie store
-1 .tieloc store
-1000 .tieval store
1 .tienum store
66 inc
stop


'*****Reproduction genes!*****
cond
*.nrg 2500 >
start
50 .repro store
stop

cond
*.robage 0 =
start
.tie inc
stop

cond
*.robage 1 =
start
.deltie inc
stop

'*****Attempt at new venom genes!*****

'***Attack enemy Tie gene***

cond
*.venom 20 <
start
10 .strvenom store
stop

cond
*.numties 0 >
*.refeye *.myeye !=
*.refeye 0 %=
start
*.tiepres .tienum store
20 .tieval store
.repro .vloc store
1 .venval store
-3 .tieloc store
stop

cond
*.tiepres 0 !=
*.numties 0 >
*.refeye *.myeye !=
*.refeye 1 !>
'activate the *66 0 = line to enable proper tie feeding
'and to disable venom attacks on veggies.
*66 0 =
start
*.tiepres .tienum store
20 .tieval store
.repro .vloc store
1 .venval store
-3 .tieloc store
stop


'*****Slime and Other Stuff*****
cond
*.slime 100 <
start
50 .mkslime store
stop

cond
*.body 2000 <
*.nrg 2000 >
start
100 .strbody store
stop
end

Its not the best of fighting bots (which I used to make a few of) but I think it does work to an extent, lemme know what ya think
« Last Edit: September 02, 2006, 07:08:39 AM by Mutchy »

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Energy Killer Virus
« Reply #1 on: September 03, 2006, 08:02:23 AM »
Had a look, think you need to work on the conditions a bit.

*.refeye 0 %= is the same as *.refeye 0 =

*.refeye 1 !> is the same as *.refeye 1 <=

*66 will only be 0 when there are no ties attached.

Chances are that it is only ever going to use the middle gene when it sees a veg or is looking into space.

The last gene is constantly going to be stopped by the *66 bit

You could try changing the refvars on those two genes to trefvars.
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
Energy Killer Virus
« Reply #2 on: December 21, 2006, 12:40:43 AM »
I don't know if this is quite what you were getting at but this is a bot I made a long time ago.  its virus is pretty much a cancer.




'simple virus bot
cond
*.nrg 1 >=
*.myaimsx 1 !=
start
60 .repro store
stop

cond
*.eye5 30 >
*.refeye *.myeye !=
start
-1 .shoot store
stop

cond
*.eye5 29 <
*.vel 20 <
start
5 .up store
stop

cond
*.eye5 0 !=
*.refeye *.myeye =
start
1860 rnd .aimdx store
stop

cond
*.eye3 *.eye7 !=
*.eye1 *.eye9 != or
*.eye5 35 <
*.refeye *.myeye !=
start
*.eye3 *.eye1 add *.eye7 *.eye9 add sub 2 mult .aimsx store
stop

cond
*.nrg 1000 >=
start
60 .repro store
stop



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

cond
*.vtimer 1 >
start
'donothing
stop

cond
*.vtimer 1 =
start
250 .vshoot store
stop

end
cooperation is working together to achive a common goal
mrmound