Bots and Simulations > Bot Tavern

Ambitious MB project

<< < (5/11) > >>

bacillus:
you don't have to use them as memory vars; remember .X gives you the number of location X, so using the same method constants can be defined. They are simple convenient labels. The actual type is stored in the location .type.

DrGrimm:
The MB project sounds very interesting

my scripting skills are too amateur and I feel unworthy to attempt this  in the presence of such great DB programmer people

bacillus:
Don't worry about it, somebody else will handle the hard stuff. For example, any genes that are an improvement on the current fill-in feeding gene would be great. The idea is to have scraps of code from everybody melded into one, regardless of skill level.

Houshalter:

--- Quote from: bacillus ---you don't have to use them as memory vars; remember .X gives you the number of location X, so using the same method constants can be defined. They are simple convenient labels. The actual type is stored in the location .type.
--- End quote ---
I never thought about using variables as constants before. Kind of an oxymoron. Anyway I figured out how to get past the schools internet blocker. No I didn't hack it or anything. Just use google cache and for some reason it still lets you read and post here. Im actually at home right now but I could post this from school if I wanted to.

EDIT: I just found out custom variables are case-sensitive. That really screwed up my bot at first because I like to use variables like 'AgeWhenTied' or 'LastBotNumber' to keep the words seperate but I just end up typing them like 'agewhentied' or 'lastbotnumber' cause its faster. Not a big deal, just didn't see anything about it in the wiki.

bacillus:
Odd, usually they are case-insensitive.Btw. I usually only use constants if you keep having to refer to them (eg. sustbody, if you want to keep the body level constant, it's usually faster to make a constant and tweak that instead of finding the number in the code.), or if a number has a special meaning (spine and head, for example.)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version