Floatslider - Selected Vertex

Hi,
I am trying to figure out how to:
Have a floatSlider affect a SELECTED vertex.

So, if I have vertex0 of polyCube selected, the slider will (for instance) affect the x translation of this vertex.
Then, when a different vertex is selected, the slider will affect the x translation of that vertex.

Of course, my biggest problem has been getting the slider to update.
Anyone?

PLEASE HELP!
Thanks.

Ok, got most of it worked out...
But I can't figure out how to connect a variable with the floatslider...

I would like to define a variable in the following manner:

CODE
OutputVar = FLOATSLIDER_VALUE / 4

after having called something like:
CODE
cmds.window()
cmds.columnLayout( adjustableColumn=True )
cmds.floatSlider( 'slider', min=-100, max=100, value=0, step=1 )
cmds.showWindow()

Having trouble with it... seems easy.
Thanks