Author Topic: kill all ... options  (Read 2877 times)

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
kill all ... options
« on: April 17, 2006, 07:47:03 AM »
It would be nice to have options that would allow to kill all robots that fullfill a certain condition.
For example an option:
 kill all bots that are (cycles now- cycles at activation)/1000 rounded down generation, which would kill the old generations starting from 0 and progressing to the next generation after 1000 cycles.

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
kill all ... options
« Reply #1 on: April 17, 2006, 09:01:44 AM »
Those kind of things will be possible with improved scripts; see this topic

I'd really like that scriptsystem to come as it would greatly increase DB's ease-of-use, especially in evo-sims.
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
kill all ... options
« Reply #2 on: April 17, 2006, 01:16:01 PM »
I've been thinking a little about scripts recently.  I think the best solution is to create a new programming language that's somewhat similar to the ones the bots use, and have "System sysvars".  So a script might look like:

cond
*.Simcycles 100000 =
start
Simgravity inc
stop

or something like that.  I dunno, just a thought.

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
kill all ... options
« Reply #3 on: April 17, 2006, 01:23:07 PM »
Yeah that'd be great!  

A simulation with it's own DNA that regulates itself, that'd be SO cool  
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
kill all ... options
« Reply #4 on: April 17, 2006, 01:50:03 PM »
FYI, you can use the new age cost in 2.42.2 to kill bots that reach a certain age in cycles by specifying a huge cost that doesn't kick in until you want it to...  Not exactly what you want, but works today...
Many beers....

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
kill all ... options
« Reply #5 on: April 17, 2006, 03:29:20 PM »
The simulation/world has bot DNA itself?
WOOOOSH Gaia theory  

http://en.wikipedia.org/wiki/Gaia_theory

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
kill all ... options
« Reply #6 on: April 17, 2006, 03:33:02 PM »
The hardest part is deciding on syntax.

Like, say you want to do something for every bot.  What's the best syntax?  What if you want to do something with only one species?