Welcome to the Creatures Wiki! Log in and join the community.

Editing Biochemistry

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 333: Line 333:
 
If the chemical is above the threshold value, then the new value of the locus is calculated according to one of two rules:
 
If the chemical is above the threshold value, then the new value of the locus is calculated according to one of two rules:
 
* Analog receptors (<code>!(flags & 2)</code>) stimulate a locus proportional to the signal level received: <code>nominal + (chemical - threshold) * gain / 255 * R</code>
 
* Analog receptors (<code>!(flags & 2)</code>) stimulate a locus proportional to the signal level received: <code>nominal + (chemical - threshold) * gain / 255 * R</code>
* Digital receptors (<code>flags & 2</code>) stimulate a locus when they see a certain chemical level: <code>nominal + gain * R</code>
+
* Digital receptors (<code>flags & 2</code>) stimulate a locus when they see a certain chemical level: <code>nominal + chemical * R</code>
  
 
In these calculations, <code>R</code> is 1 normally, or -1 if "Output REDUCES with increased stimulation" is set (<code>flags & 1</code>).
 
In these calculations, <code>R</code> is 1 normally, or -1 if "Output REDUCES with increased stimulation" is set (<code>flags & 1</code>).

All contributions to Creatures Wiki are considered to be released under the CC-BY-SA and GFDL (see Creatures Wiki:Copyrights for details).

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)