Bots and Simulations > DNA - General

shootval

(1/2) > >>

Zelos:
hi, I was looking trought things you can use in db and I readed what shootval do, but I didnt get it, can some1 explain it more? and backshot is the same as shoot but only from the back right? :unsure:

PurpleYouko:
First, you are correct about backshot. It just creates a shot from the back of the robot. Any value other than zero stored into backshot will make it go backward.

shootval is where you place the value that you want to transmit through the shot.

This doesn't apply to -1 shots or -6 shots (at least up to V2.35)

shootval is primarily used to "poke" a value into another robot's memory at a specific location. Take a look at this nasty little gene.

cond
*.eye5 40 >
*.refeye *.myeye !=
start
.aimsx .shoot store
200 .shootval store
stop

What does it do?

It will fire a shot at any robot that isn't a conspecific and is closer than 40 in eye5.

The shot will hit memory location (.aimsx) 6

A vlaue of 200 (stored in shootval) will be "poked" (placed) into this location in the enemy robot when the shot hits it and overcomes the shell defenses.

Result?

The victim will be forced to rotate left by a value of 200 points. He turns away so that he can't shoot back.

Of course, this actual gene won't be much good in a battle because the robot will only ever fire this type of shot and will never use a -1 or -6 to feed with.
You will need to come up with a better condition.

 :D  PY  :D

Light:
hmmm where could I have seen this before :rolleyes:

Numsgil:
I think Ymir has a shot like that  :P

Zelos:
ty py

Navigation

[0] Message Index

[#] Next page

Go to full version