In and Out

From WikiManual
Revision as of 15:11, 13 February 2006 by Elite (talk | contribs)
Jump to: navigation, search

This refers to the .in1, .in2, .in3, .in4, .in5 .out1, .out2, .out3, .out4, .out5 sysvar locations. The number stored at out1, out2 or another out can be read by any robot viewing the bot, with the value arriving at in1, in2 or another in respectively. These were in the past used for identification, and more recently in unique bot species not intended for battle.

ID'ing non family with in/out:

*.in1 *.out1 !=

A problem similar to the one facing bots using memloc/memval for identification is that with the simple code:

*.in1 .out1 store

An enemy bot can seem like family. Of course with randomly(rnd) changing their value via inc/dec an enemy bot will waste Energy storing these.

Robot DNA