.focuseye

From WikiManual
Revision as of 13:13, 27 December 2007 by Googlyeyesultra (talk | contribs) (Created .focuseye page. Based on EricL's summary.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.focuseye is a read/write sysvar (mem location 511). Indicates which of the bot's 9 eyes should be used to populate the refvars. A value of 0 indicates .eye5 should be used. A value of -1 indicates .eye4, and value of +1 indicates .eye6 and so on for values from -4 to +4 inclusive. If a value outside this range is stored to the location, it is MODed in such a way that the value refers to one of the 9 eyes. A value of -5 corrosponds to .eye9 for example, a value of 5 to .eye1 and so on. The refvars are updated using the specifried eye during the same cycle .focuseye is modified. Values stored into .focuseye persist across cycles, can be read by bot DNA and the specified eye will be used for refvars until a new value is stored into .focuseye.