There are a number of errors in your code.
def tie1 0
def tie2 0
def tie3 0
This may not be an actual error but I am not quite sure what you are trying to do here.
What you are actually achieving is to create 3 custom variables with a value of zero in each one.
If that is what you wanted then great.
Normally these should point at different location. Also note that you cannot store values in .0 (see reason 1 below)
cond *.eye5 0 !=
*.refeye *.myeye =
.tie 0 =
start
1 .tie store
inc .tie1
stop
Couple of problems here.
".tie 0 ="
.tie is always going to be zero unless it has been set earlier in the same cycle. It is reset at the end of each cycle. I also assume that you meant this to be ".tie1 0 =" in which case it will never activate the gene. (see reason 1 below)
"inc .tie1"
I assume that you want to increment the value of tie1 but it won't work for 2 reasons.
1 There is no memory position zero in the memory array so you can't increment the value held in the memory location pointed at by .tie1
2 The command is backwards. it should read ".tie1 inc"
hints
1 use unique tie identifier numbers for each tie. .tie inc just puts a value of 1 in each tie
2 *.tiepres returns the value of a tie
3 *.numties tells you how mamy ties exist on your robot.
try again and let me know if you need some one-on-one help