Author Topic: How to implement viruses, poison/venom, slime, shell, ties, etc.  (Read 3467 times)

Offline SlyStalker

  • Bot Destroyer
  • ***
  • Posts: 132
  • nomnomnomnom
    • View Profile
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.
Knowledge is knowing that a tomato is a fruit; Wisdom is not putting it in a fruit salad.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: How to implement viruses, poison/venom, slime, shell, ties, etc.
« Reply #1 on: March 05, 2013, 05:00:04 PM »
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: [Select]
*.thisgene .mkvirus store
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
« Last Edit: March 06, 2013, 12:44:28 PM by Botsareus »

Offline SlyStalker

  • Bot Destroyer
  • ***
  • Posts: 132
  • nomnomnomnom
    • View Profile
Re: How to implement viruses, poison/venom, slime, shell, ties, etc.
« Reply #2 on: March 06, 2013, 02:35:48 AM »
Thanks! But... how do you IMPLEMENT slime and shell and what do they do?
Knowledge is knowing that a tomato is a fruit; Wisdom is not putting it in a fruit salad.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: How to implement viruses, poison/venom, slime, shell, ties, etc.
« Reply #3 on: March 06, 2013, 12:09:22 PM »
Quote
maxing out slime should fully protect you from venom or poison attacks

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


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.

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

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

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

Code: [Select]
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

For best results set the settings just like in the picky.
« Last Edit: March 06, 2013, 12:44:11 PM by Botsareus »

Offline SlyStalker

  • Bot Destroyer
  • ***
  • Posts: 132
  • nomnomnomnom
    • View Profile
Re: How to implement viruses, poison/venom, slime, shell, ties, etc.
« Reply #4 on: March 06, 2013, 08:18:16 PM »
do making shells, slime, viruses and venom cost energy??
Knowledge is knowing that a tomato is a fruit; Wisdom is not putting it in a fruit salad.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: How to implement viruses, poison/venom, slime, shell, ties, etc.
« Reply #5 on: March 07, 2013, 09:46:09 AM »
Yepers