.sharenrg
In a multicellular organism, the percentage of the energy pooled with each partner that you want to keep; the engine splits it in the same cycle.
Facts
- Address
- 830
- Name
.sharenrg- Kind
- Command: the bot writes it and the engine reads it and usually consumes it
- Group
- Ties
- Written by
- Your DNA.
- Read by
- The engine, in the movement phase: for every tie you created, it leaves you that percentage of the energy pooled with the partner. Only if you are multicellular.
- Cleared
- The engine, every cycle, whether you use it or not.
- Range
- −32000 to 32000; counts from 1 to 100 (the remainder of dividing by 100; a multiple of 100 counts as 100); 0 or negative does nothing
- Mutations
- picked as a store target
Write a percentage from 1 to 100. For each tie, the engine adds your energy and your partner's and leaves you that percentage of the total; the rest stays with the partner. With 50 both end up even, with 90 you keep almost everything, with 10 you give it away.
Conditions and limits:
- It only works if you are multicellular (
.multi) and only through the ties you created yourself with.tie. From the other end, the order does nothing: if the child tied itself to the parent, the child is the one that has to ask for the sharing. - In one cycle no more energy is moved than your body (
.body); if the difference is big, it takes several cycles. - Whoever asks for the sharing pays 1% of what was moved.
- The value is taken modulo 100, and a remainder of 0 (like 200) counts as 100: 100 is “everything for me” and 150 is 50. A 0 or a negative does nothing.
The engine clears the order every cycle, so you always have to write it. It is one of the most used cells in the Bestiary: many multicellular bots write 99 or 50 every cycle.
' newborn: tie to the parent and, once multicellular, share evenly
cond
*.robage 1 =
start
7 .tie store
stop
cond
*.multi 1 =
start
50 .sharenrg store
stop.sharewaste, .shareshell, .shareslime and .sharechlr do the same for waste, shell, slime and chloroplasts, respectively.