Difference between revisions of ".nrg"

From WikiManual
Jump to: navigation, search
(Get Energy)
m (Minor Nummy edit all over)
Line 1: Line 1:
=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.
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.  
 
  
 
+
== Obtaining Energy ==
 
 
 
 
==Get Energy==
 
  
 
There are 3 ways of getting 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.
+
1: Hunting using particle shots, also called [[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:
 
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:
  
<pre>
+
*.tiepres .tienum store
<nowiki>*.tiepres .tienum store</nowiki>
+
-20 .tieval store
<nowiki>-20 .tieval store</nowiki>
+
-1 .tieloc store
<nowiki>-1 .tieloc store</nowiki></pre>
 
 
 
  
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.
+
Here the .tieval tells how much the feedig bot gets. The larger the magnitude of the negative number, 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.
+
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 20 cycles.
  
==Store Energy==
+
== 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.
 
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.
+
Both strbody and fdbody (as with most other commands) take values in terms of change in energy.  That is, how much energy to store, and how much energy to retrieve.
  
==Future Energy Stuff==
+
== 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.
+
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. No actual programming work has been done as yet, but it [i]will[/i] be added.

Revision as of 09:23, 22 September 2005

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.

Obtaining Energy

There are 3 ways of getting energy

1: Hunting using particle shots, also called 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 feedig bot gets. The larger the magnitude of the negative number, 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 20 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 (as with most other commands) take values in terms of change in 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. No actual programming work has been done as yet, but it [i]will[/i] be added.