DarwinBotsManual
Open the app EspañolES

.stifftie

Order to change the stiffness of a stiffened tie, from 1 (soft) to 100 (very stiff).

Facts

Address
331
Name
.stifftie
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: sets the stiffness of the tie chosen with .tienum (or that of .tiepres), at both ends. Only stiffened ties of a multicellular organism.
Cleared
The engine, after using it. If you have no ties, or .tienum and .tiepres are 0, it stays written.
Range
−32000 to 32000; counts from 1 to 100 (the remainder of dividing by 100; a multiple of 100 counts as 100 and a negative counts as 1); 0 is not a command
Mutations
picked as a store target

It adjusts how strongly the tie chosen with .tienum (or the one from .tiepres) returns to its length and how much it damps oscillations. It applies to both ends and stays until you change it; the engine clears the order after using it.

The scale goes from 1 to 100. The engine takes the remainder of dividing by 100; if that remainder is 0 (as with 200), it counts as 100, and a negative counts as 1. Writing 0 is not an order. So 150 is 50 and 100 is the maximum. For reference, a freshly stiffened tie is equivalent to 20, and a soft, newly made one to 4.

It only acts on stiffened ties of a multicellular bot (.multi). If the bot has no ties, the value stays written.

' very stiff ties for a compact organism
cond
*.multi 1 =
start
100 .stifftie store
stop

The length is adjusted with .fixlen and the angle with .fixang.