.nrg

From WikiManual
Revision as of 18:19, 20 September 2005 by 66.91.141.218 (talk) (Get Energy)
Jump to: navigation, search

Darwinbot Energy

Any action performed by a bot requires energy. The energy can be spent on moving around, reproduction, getting more energy and many other things. A bot can also store energy for future use.



Get Energy

There are 3 ways of getting energy

1: Hunting using particle shots or Shooting. DNA command -1 .shoot results in a particle being shot in the direction the bot is facing. If the particle hits another bot, that bot will shoot back a particle containing a portion of its own energy. -6 shots will return an identical energy shot, but feed from the bot's Body points instead of energy reserves.

2: Sucking energy through Ties. A bot can get close to another bot and tie to it. The agressor is then able to steal the energy from the target using DNA code like the following one:

*.tiepres .tienum store
-20 .tieval store
-1 .tieloc store


Here the .tieval tells how much the bot gets. The higher the negative number is, the more energy the aggressor bot gets. There is a limit of 100 energy/cycle as of 2.37 and prior. Note that positive values work as well, and allow you to give energy to the other bot. (Yeah, I don't know why either. Maybe you're a benevolent acetic?) Or perhaps the bot you were trying to feed from has just stored 100 into your .tival and is trying to eat you, as you eat it.

3: Tricking target bot into sharing its energy with the agressor. This method is similar to #2, but here you use .sharenrg command. It is easier and does not cost any energy except to make the tie. Also, no waste is produced. However, you must wait for the tie to harden, giving your victim a chance to escape. The tie hardens in (I have no idea. 40?) cycles.

Store Energy

For 2.37 and before: Bots can store energy as Body points with the .strbody command. It converts 10 energy points into 1 body point. To retreive energy back from body, bots can use the .fdbody command. However there is a limit of 100 energy points per cycle that can be retrived from body points.

Both strbody and fdbody take values as energy. That is, how much energy to store, and how much energy to retrieve.

Future Energy Stuff

Lots of work is being done in the area of metabolism and digestion. Relatively soon you should see some major changes in this area. These changes will be backward compatible, though, so don't worry about your current bots not working. This stuff isn't in the program yet, but is gonna be added.