Bots and Simulations > Bot Tavern

How to implement viruses, poison/venom, slime, shell, ties, etc.

(1/2) > >>

SlyStalker:
Hi everyone,
I'm pretty new to DNA programming (compared to most of you, anyway) and I was just wondering how to implement things like slime, shell, poison, etc. I think this thread would be helpful to some other newbies too.

Botsareus:
Here is a useful link:

http://wiki.darwinbots.com/w/Venom

A virus simply injects a gene in a robot specified by the virus, for example
--- Code: ---*.thisgene .mkvirus store
--- End code ---

Refer to http://wiki.darwinbots.com/w/Sysvars viruses section for more info.

Finally, if my memory serves me right:

maxing out slime should fully protect you from venom or poison attacks

maxing out shell should fully protect you from -6 .shoot attacks

a max value is 32000

PLEASE refer to 2.45.02  internal help via the programs help menu, and scroll down to shoot for more infomation.


I am in the process of fixing ties, there are some good examples you may find (http://forum.darwinbots.com/index.php/board,25.0.html), but half of them (as it turns out) will not save properly when you resume a simulation.


Oh, almost forgot:

Welcome to Darwinbots!  :D

SlyStalker:
Thanks! But... how do you IMPLEMENT slime and shell and what do they do?

Botsareus:

--- Quote ---maxing out slime should fully protect you from venom or poison attacks
--- End quote ---

Oh sorry, slime apparently only protects you from robots trying to tie to you.


--- Quote ---maxing out shell should fully protect you from -6 .shoot attacks
--- End quote ---


meaning if a robot has allot of shell and some one try to shoot it with -6 shot (little spray things flying out of the robot) the robot should be immune to the attack.

a -6 shot forces the pray to shoot back some body in the form of a shot.

Here is the internal help on all the shots:


--- Quote ---   -1   Forces the target robot to fire a -2 (containing some of his energy) shot back toward the first robot
      A -1 shot does not require a value to be stored in .shootval.
   -2   Fires a shot containing some of the robot's energy.
   -3   Fires a venom shot.
   -4   Fires a shot containing some of the robot's waste.
   -5   Poison shot. Cannot be fired voluntarily, only in response to an incoming -1 shot.
   -6   As -1 but specifically targets body points rather than energy points.
   -7   Virus shot. Same as .vshoot
   -8   Fires a sperm shot for sex repro.

--- End quote ---

So, here is a simple bot that attacks other bots trying to feed on body points


--- Code: ---cond
start
10 .up store 'robot is moving up
-6 .shoot store 'robot is shooting for body points
stop
end

--- End code ---

Here is an example of a robot who is slowly making shell:


--- Code: ---cond
start
10 .mkshell store 'this is the code to make some shell (it will be a red arc slowly building around the robot)
-6 .shoot store 'test the shell
stop

--- End code ---

For best results set the settings just like in the picky.

SlyStalker:
do making shells, slime, viruses and venom cost energy??

Navigation

[0] Message Index

[#] Next page

Go to full version