Bots and Simulations > DNA - General

newbie robot

<< < (2/2)

Lorgar:
I want to make it more resilient. What about a paralel virus based reproduction system? what defense should I put up first (as shell, poison, venom or slime are costly I may have to choose wich one to implement first, taking into account the energy and waste management system)

Panda:
I do not know what you mean by a "parallel virus based reproduction system", can you explain that? Viruses are also very expensive and difficult to spread without using a lot of energy. I remember making one and it killing my own bots off very quickly before it even spread.

I use poison mostly as defense as it is easy to control and can allow you to do many things to the other bot, for example, you can get their bot to fire energy at you while you have a chance to react. It can also be used to blind them or make them turn away(which isn't useful in all circumstances because some bots have eyes all the way around them). One limitation of the poison is that it degrades, which means that you need to work out a good way to create it while being attacked. Shell and slime are expensive and, to be honest, I hardly use them but I am sure that they are a good defense when used well. Slime also degrades and only protects from viruses, I think. Venom is an offense, by the way, it is just a bot controlled poison, being able to choose when to fire it, instead of it being a "reflex". It does not degrade like poison either.

To be honest I would go with poison as it can do so many more things than the others, however, you will need to have some sort of "detection" system to tell when it is being hit.

Lorgar:
A virus infected bot would use all his body and nrg to produce little poisoned bots that create ties and stay together, sharing slime (to protect them from another virus infection) they would react with poison and/or venom if attacked by a bot without a specific gene added to all my bots.
something like this (101 being the memory address and 13 the specific gene) I assume the presence of an aiming gene to aim at the attacker

cond
*.hit 0 !=
*.bodloss 0!=
*.ref101 13 !=
start
-3 .shoot store
stop

these little beings would be "stockbots" just fortifying themselves to protect whatever body and nrg point they have until some of my bots come around to eat them. What they would do without being hindered by poison (either using -6 shots or just not being seen as foes) or venom.

edit, where can I find a good MB tuto?

Panda:
There's only the one on the wiki. To be honest, multibots isn't the way to go.

Lorgar:
ok, panda, look at this one!
 8)

--- Code: ---'orkyboy

def tgtpoison 50
def tgtvenom 51
def tgtslime 52
def tgtshell 53
def tgtparalyzed 54
def tgtma 55

'tie to parent
cond
*.robage 0 =
start
.tie inc
*.tiepres .tienum store
stop

'untie
cond
*.robage = 1
start
*.tienum .deltie store
 stop


'movement genes


cond
 *.eye3 *.eye5 >
start
 -30 .aimdx store
stop

cond
 *.eye7 *.eye5 >
start
 30 .aimdx store
stop

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

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


'waste shoot
cond
 *.waste 800 >
start
 -4 .shoot store
stop

cond
 *.venom 30 <
 *.nrg 2000 >
start
 30 *.venom sub .strvenom store
 .up .vnloc store
 0 .venval store
stop


'venom shoot
cond
*.eye5 =!
*.refeye *.myeye !=
start
 *.memval .tgtID store
 .up .memloc store
 *.memval .tgtma store
 .paralyzed .memloc store
 *.memval .tgtparalyzed store
 .shell .memloc store
 *.memval .tgtshell store
 .poison .memloc store
 *.memval .tgtpoison store
 .slime .memloc store
 *.memval .tgtslime store
stop


cond
 *.eye5 20 >=
 *.refeye *.myeye !=
 *.tgtma 0 =!
 *.tgt paralyzed 0 !=
 *.tgtshell 0 =
 *.tgtpoison 0 =
 *.tgtID *out1 =
start
 -3 .shoot store
stop


'attackshoot

cond
 *.eye5 20 >=
 *.refeye *.myeye !=
 *.tgtshell 0 =
start
 -6 .shoot store
stop

'nrg shot
cond
*.eye5 20 >=
*.refeye *.myeye !=
*.tgtpoison 0 =
start

stop

'feeding genes
cond
 *.eye5 0 !=
 *.refeye *.myeye !=
 *.tgtslime 0 =
start
  50 rnd .tie store
 *.tiepres .tienum store
 -6 .tieloc store
 -1000 .tieval store
stop


'anti leach gene
cond
*.tiepres *.tienum !=
start
*.tiepres .deltie store
stop


'reproductive gene
cond
 *.nrg 6000 >
 *.body 800 >
 *.eye5 40 <
start
 50 .repro store
stop


'shell gene
cond
 *.slime 20 <
start
 20 *.slime sub .mkslime store
stop

'poison gene
cond
 *.poison 10 <
 *.nrg 2000 >
start
 10 *.poison sub .mkpoison store
 .shoot .ploc store
stop


end
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version