Author Topic: Parasitic Algae V1  (Read 798 times)

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
Parasitic Algae V1
« on: January 17, 2014, 11:52:54 PM »
I am working on an algae that ties to other bots when it is young, and once it has gained enough energy, it becomes sessile and starts making chloroplasts. In the future, I'll make a version that uses venom to paralyze moving bots.

Code: [Select]
'Parasitic Algae
'Ties to other organisms and feeds
'Once it has gained enough energy it becomes sessile

cond
start
-4 *.eye1 *.eye9 sub sgn 0 floor mult *.eye1 *.eye8 sub sgn 0 floor mult *.eye1 *.eye7 sub sgn 0 floor mult *.eye1 *.eye6 sub sgn 0 floor mult *.eye1 *.eye5 sub sgn 0 floor mult *.eye1 *.eye4 sub sgn 0 floor mult *.eye1 *.eye3 sub sgn 0 floor mult *.eye1 *.eye2 sub sgn 0 floor mult 4 *.eye9 *.eye8 sub sgn 0 floor mult *.eye9 *.eye7 sub sgn 0 floor mult *.eye9 *.eye6 sub sgn 0 floor mult *.eye9 *.eye5 sub sgn 0 floor mult *.eye9 *.eye4 sub sgn 0 floor mult *.eye9 *.eye3 sub sgn 0 floor mult *.eye9 *.eye2 sub sgn 0 floor mult *.eye9 *.eye1 sub sgn ++ sgn mult add -3 *.eye2 *.eye9 sub sgn ++ sgn mult *.eye2 *.eye8 sub sgn 0 floor mult *.eye2 *.eye7 sub sgn 0 floor mult *.eye2 *.eye6 sub sgn 0 floor mult *.eye2 *.eye5 sub sgn 0 floor mult *.eye2 *.eye4 sub sgn 0 floor mult *.eye2 *.eye3 sub sgn 0 floor mult *.eye2 *.eye1 sub sgn ++ sgn mult add 3 *.eye8 *.eye9 sub sgn ++ sgn mult *.eye8 *.eye7 sub sgn 0 floor mult *.eye8 *.eye6 sub sgn 0 floor mult *.eye8 *.eye5 sub sgn 0 floor mult *.eye8 *.eye4 sub sgn 0 floor mult *.eye8 *.eye3 sub sgn 0 floor mult *.eye8 *.eye2 sub sgn ++ sgn mult *.eye8 *.eye1 sub sgn ++ sgn mult add -2 *.eye3 *.eye9 sub sgn ++ sgn mult *.eye3 *.eye8 sub sgn ++ sgn mult *.eye3 *.eye7 sub sgn 0 floor mult *.eye3 *.eye6 sub sgn 0 floor mult *.eye3 *.eye5 sub sgn 0 floor mult *.eye3 *.eye4 sub sgn 0 floor mult *.eye3 *.eye2 sub sgn ++ sgn mult *.eye3 *.eye1 sub sgn ++ sgn mult add 2 *.eye7 *.eye9 sub sgn ++ sgn mult *.eye7 *.eye8 sub sgn ++ sgn mult *.eye7 *.eye7 sub sgn 0 floor mult *.eye7 *.eye6 sub sgn 0 floor mult *.eye7 *.eye5 sub sgn 0 floor mult *.eye7 *.eye4 sub sgn ++ sgn mult *.eye7 *.eye2 sub sgn ++ sgn mult *.eye7 *.eye1 sub sgn ++ sgn mult add -1 *.eye4 *.eye9 sub sgn ++ sgn mult *.eye4 *.eye8 sub sgn ++ sgn mult *.eye4 *.eye7 sub sgn ++ sgn mult *.eye4 *.eye6 sub sgn 0 floor mult *.eye4 *.eye5 sub sgn 0 floor mult *.eye4 *.eye3 sub sgn ++ sgn mult *.eye4 *.eye2 sub sgn ++ sgn mult *.eye4 *.eye1 sub sgn ++ sgn mult add 1 *.eye6 *.eye9 sub sgn ++ sgn mult *.eye6 *.eye8 sub sgn ++ sgn mult *.eye6 *.eye7 sub sgn ++ sgn mult *.eye6 *.eye6 sub sgn ++ sgn mult *.eye6 *.eye5 sub sgn 0 floor mult *.eye6 *.eye3 sub sgn ++ sgn mult *.eye6 *.eye2 sub sgn ++ sgn mult *.eye6 *.eye1 sub sgn ++ sgn mult add 4 add *.focuseye 4 add sub dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- dup sgn -- sgn ++ .focuseye mult inc -- 9 add - dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec -- dup sgn -- sgn ++ .focuseye mult dec --
stop


cond
*.nrg 10000 >=
start
1 .mkchlr store
stop

cond
*.nrg 10000 <=
start
0 .fixpos store
stop

cond
*.nrg 10000 >=
start
1 .fixpos store
stop

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

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

cond
*.nrg 20000 >=
*.body 2000 >=
start
10 .repro store
stop

cond
*.robage 1 >=
start
244 .out1 store
stop

cond
224 *.in1 !=
start
10 .up store
5 .tie store
stop

cond
*.numties 1 >=
224 *.in1 !=
start
-1 .tieloc store
-5 .tieval store
stop

cond
*.numties 1 >=
224 *.in1 =
start
*.tiepres .deltie store
stop

cond
*.slime 100 <=
start
100 .mkslime store
stop

cond
*.waste 40 >=
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop

cond
*.robage 1 =
start
*.setboy store 20
stop

cond
*.robage 2 =
start
-20 .up store
stop

cond
*.robage 0 =
start
-100 .mkchlr store
stop

cond
*.robage 0 =
start
.shoot .ploc store
stop

cond
*.poison 100 <
start
50 .strpoison store
stop

cond
*.robage 0 =
start
 .fixpos .vloc store
  1 .venval store
stop

cond
100 *.venom >
start
100 *.venom sub .strvenom store
stop

cond
*.refeye *.myeye !=
*.refeye 0 >
*.eye5 30 >
start
'fire venom
-3 .shoot store
stop

cond
 *.nrg 25000 >
start
 50 .repro store
stop

cond
« Last Edit: April 30, 2014, 12:16:25 PM by Botsareus »

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
Re: Parasitic Algae V1
« Reply #1 on: April 12, 2014, 10:21:21 PM »
Added another gene to reproduce, and the start of paralyzing venom.
« Last Edit: April 12, 2014, 11:10:24 PM by NotLegalTender »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: Parasitic Algae V1
« Reply #2 on: April 30, 2014, 12:18:55 PM »
Robot does not show behavior of a Vegy, moving to untagged.