Bots and Simulations > Interesting behaviour bots
A_Packus_Toxus
Moonfisher:
It does a lot better in F3, but you still have some of the previous issues. Like venom never getting triggered because venomcounter hasn't been declared.
Add this line below the introduction text (Not in a gene) :
def venomcounter 110
This simply means that when you write *.venomcounter it's the same as writing *110 (And .venomcounter is the same as 110)
So you refer to the memmory location 110 (Which is default 0 and isn't used as a sysvar, I think the range 75 to 150 should be safe locations to use)
Anyway, this should get your venom going. I'd immagine it would have a big impact on it's performance.
bacillus:
--- Quote from: triclops200 ---lol, I'm trying to make an algae that groups and uses signals when predators are nearby. I can't get I/O to work.
--- End quote ---
Basically you just put any value into one of the IO ports, for example 60 .out1 store. Then any bot which has this bot in its focus eye can read the value through its input, eg. it will read the .out1 value through *.in1. I suggest using at least one I/O port for conspec, as the bot can also read its own out values. This also tends to fool doppelgangers:
42 .out1 store (arbitrary conspec number)
-32000 32000 rnd .out2 store ('identity' number)
cond
*.in1 *.out1 = (checking conspec)
*.in2 *.out2 != (checking that bot is ont a doppelganger)
Navigation
[0] Message Index
[*] Previous page
Go to full version