RefVar

From WikiManual
Revision as of 23:31, 30 October 2005 by Endy (talk | contribs) (gen edit endy)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Refvars readback information on the bot located in eye5. Basically based on the information received the bot will be programed to behavior in specific ways. If it is a conspecific the bot will normally not shoot and will turn away.

cond
*.refeye *.myeye !=
*.eye5 37 >
start
-1 .shoot store
stop

The two main groups of ref's are those that tell numbers of dna commands within a bot and those that tell characteristics of a bot.

Refeye for instance tells the number of .eyeX commands within a bot. Refpoison will readback the amount of poison a bot has.

A slight issue with over relying on these is that the commands that appear to be used by the dna, may not in fact be in actual use.

cond
start
.tie .shoot .aimdx .eye5 add add add add dup sub
stop
end

this would give the bot the appearence of being able to turn, tie, shoot, and see but in fact the values are being used as pure numbers to have no actual affect.

The exact opposite can also be done, deliberatly hiding a bot's abilities by encoding them as numbers, making a deadly bot look harmless.