Tie

From WikiManual
Revision as of 12:59, 31 January 2006 by Ollj (talk | contribs) (merged hard tie and soft tie)
Jump to: navigation, search

Ties are a nonphysical element in DB that produces a connecting force between bots. They are similar in essense to ropes tinging two bodies together.Ties have no collision detection.

Sysvars:

Ties:

.tie 330
.stifftie 331
.numties 466
.tiepres 454
.tienum 455
.readtie 471
.deltie 467
.tieloc 452
.tieval 453
Multibot

Soft Tie refers to the 20 cycle period prior to a tie hardening. When a Tie hardens the bots are technically Multibots allowing it access to special Sharing commands and identifaction as a MB. You must understand these basics of the tie commands before the more complex commands and functions will make any sense at all. Make sure you understand ties.

Commands

.tienum - The number of the tie. A value needs to be stored here inorder to use tieloc and tieval.

.tie - This will shoot a tie forward along the direction the bot is facing. The number stored in .tie will be important; that's the bot's only way to access the new tie for more complex interactions.

.deltie - The opposite of .tie. The bot will attempt to delete any ties with the specified number. Did you remember to store the number you used for .tie?

.tieloc - Other bots memory location affected by tie. When set to -1 allows nrg transfer via ties, most commonly used for feeding.

.tieval - The number you want to store in their memloc or the amount of nrg to take/give.

.tielen - The length of the tie.

.tieang - Angle of the tie, in reference to eye5


Ties are always a part of Multibots and are frequently used by Single Bot to steal Energy from other bots.

A single tie can connect only 2 bots together. The maximum number of ties currently is 4, although this is expected to change in future versions.

Ties start as a Soft Tie and can become Hard Ties.


A hard tie is a tie that has hardened after being attached for more than 20 cycles. A hard tie determines that a bot has become a MB. With this it gains the ability to use the Multibot sharing capability in addition to the commands shown below.

Commands

.fixlen - allows bot to change the length of tie once hardened

.fixang - allows bot to change angle of the tie once hardened