I had a somewhat similar idea some time ago - basically what I wanted to do was to recreate the social structure of ants. I had a queen sitting around, reproducing and being fed by non reproductive workers. I think I had soldiers too at some point (basically big berthas sitting around the queen, but they're not in the code I found (see below) for some reason. The concept doesn't really work well but at least the "colony" can survive for some time with well meaning environment settings. It would be cool if the queen could tell new workers to head to the direction from where she was last fed, but I suppose that would be very hard to do.
cond
*.totalbots 50 <
*.robage 2 =
start
7 .out1 store
stop
cond
*.totalbots 100 >
*.robage 2 =
start
1 .out1 store
stop
' Find food
cond
*.eye5 0 >
*.eye5 50 <
*.out1 7 !=
start
*.refveldx .dx store
5 .up store
stop
' Eat
cond
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
stop
' Feed
cond
*.eye5 50 >
*.refeye *.myeye =
*.in1 7 =
*.out1 7 !=
*.nrg 100 >
start
-2 .shoot store
stop
' Looking at queen but no food left -> turn away
cond
*.eye5 50 >
*.refeye *.myeye =
*.in1 7 =
*.out1 7 !=
*.nrg 101 <
start
400 .aimdx store
stop
' Reproduce
cond
*.nrg 2000 >
*.out1 7 =
*.totalbots 100 >
start
10 .repro store
stop
' Turn Turn Turn
cond
*.eye5 0 =
start
100 .aimdx store
stop
' Turn Turn Turn
cond
*.out1 7 =
*.robage 10 mod 0 =
start
100 .aimdx store
stop
end