Bots and Simulations > Bot Tavern

trying to make a bot

<< < (2/3) > >>

Elite:

--- Code: ---'Gene 1. Reproduction
cond
*.nrg 5000 >
start
50 .repro store
15 .aimdx store
stop

'Gene 2. Attach to parent
cond
*.robage 0 =
start
.tie inc
.shoot .ploc store
stop

'Gene 3. Simple search pattern 1
cond
*.eye3 *.eye5 >
start
-25 .aimdx store
stop

'Gene 4. Simple search pattern 2
cond
*.eye7 *.eye5 >
start
25 .aimdx store
stop

'Gene 5. Feeding
cond
*.eye5 40 >
*.refeye *.myeye !=
start
-1 .shoot store
stop

'Gene 6. Swarm with conspecs
cond
*.eye5 0 >
*.refeye *.myeye =
start
*.refaim .setaim store
stop

'Gene 7. Sever tie to parent
cond
start
.deltie inc
stop

'Gene 8. Store poison
cond
*.poison 500 <
start
50 .strpoison store
stop

'Gene 8. Actually move
cond
*.eye5 40 <
*.nrg 5000 <
start
10 .up store
stop

end
--- End code ---

I've corrected a bunch of errors and added some new stuff too. Your bot has also recieved a routine from SWARM that allows it to form very natural-looking swarms. This solves the problem of him bashing in to conspecs.

It works incredibly well now  :D

Look at him go ...

EDIT: BTW Testlund, you can't have an *.eye5 on its own outside a gene

Numsgil:
Actually you can in 2.4.  It won't do anything, but it will change what the program thinks your myeye value is, so it's useful for conspec manipulation.

Testlund:
Well, you've made the bot better, Elite, but I don't think it's a Cyanobacterium Nostoc anylonger after that change.  :P It seems a little TOO efficient now. Maybe that one should go into the Bestiary as another species.

Based on what I managed to find on internet the Nostoc species form colonies but I don't think it moves around much. I've had blue-green algea in my aquarium and it was growing on a few spots. Didn't spread much.

Testlund:
I found out that the program seem to think this bot is a veggie, so it keeps adding them when they die out, but it doesn't add any Alga Minimalis anylonger. I was wondering why that is. Is there a way to make the program think they are bots instead?

Old Henk:
Uncheck 'Vegetable, autotroph' in the species tab. ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version