Controlling a variable of type Vector 3

for example we have a variable v1: Vector3;

when a collision happens we want to increase the vector3's x by 100 ! is there a way to do that ? thanks

You can modify the x/y/z of a Vector3 as follows.

var vectorOne : Vector3;
vectorOne.x += 100;

If you want it to happen when objects collide, you can use OnCollisionEnter or OnTriggerEnter, depending on the rest of your setup.